title: Flutter Getx - "Xxx" not found. You need to call "Get.put(Xxx())" - But i have called Get.put(Xxx())
body: <p>I have this global bindings class to initialise some services and I need it to be initialised straight away:</p>
  <pre><code>import 'package:get/get.dart';
  import 'package:vepo/data/data_provider/local_data_provider.dart';
  import 'package:vepo/data/data_source/local_data_source.dart';
  
  import 'services/authentication_service.dart';
  
  class GlobalBindings extends Bindings {
    final LocalDataProvider _localDataProvider = LocalDataProvider();
    @override
    void dependencies() {
      Get.put&lt;AuthenticationService&gt;(AuthenticationService(), permanent: true);
      Get.put&lt;LocalDataProvider&gt;(_localDataProvider, permanent: true);
      Get.put&lt;LocalDataSource&gt;(LocalDataSource(_localDataProvider),
          permanent: true);
    }
  }
  </code></pre>
  <p>Which is in my initialBindings:</p>
  <pre><code>class App extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return GetMaterialApp(
        title: 'Vepo',
        initialRoute: AppPages.INITIAL,
        initialBinding: GlobalBindings(),
        transitionDuration: const Duration(milliseconds: 500),
        defaultTransition: Transition.rightToLeft,
        getPages: AppPages.routes,
        home: Root(),
        theme: homeTheme,
      );
    }
  }
  </code></pre>
  <p>Then in a class constructor I try to &quot;find&quot; it:</p>
  <pre><code>class UserLocalRepository extends VpService implements IUserLocalRepository {
    UserLocalRepository() {
      localDataSource = Get.find&lt;LocalDataSource&gt;();
    }
  
    LocalDataSource localDataSource;
  </code></pre>
  <p>And get this error:</p>
  <pre><code>══════ Exception caught by widgets library ═══════════════════════════════════
  The following message was thrown building App(dirty):
  &quot;LocalDataSource&quot; not found. You need to call &quot;Get.put(LocalDataSource())&quot; or &quot;Get.lazyPut(()=&gt;LocalDataSource())&quot;
  
  The relevant error-causing widget was
  App
  lib/main.dart:17
  When the exception was thrown, this was the stack
  #0      GetInstance.find
  package:get/…/src/get_instance.dart:272
  #1      Inst.find
  package:get/…/src/extension_instance.dart:66
  #2      new UserLocalRepository
  package:vepo/…/user/user_local_repository.dart:10
  #3      new LoggedOutNickNameBinding
  package:vepo/…/logged_out_nickname/logged_out_nick_name_binding.dart:11
  #4      AppPages.routes
  package:vepo/…/routes/app_pages.dart:29
  ...
  ════════════════════════════════════════════════════════════════════════════════
  </code></pre>
  <p>This is the binding mentioned in the error message:</p>
  <pre><code>class LoggedOutNickNameBinding extends Bindings {
    LoggedOutNickNameBinding() {
      _repository = Get.put(UserLocalRepository());
    }
  
    IUserLocalRepository _repository;
  
    @override
    void dependencies() {
      Get.lazyPut&lt;LoggedOutNickNameController&gt;(
        () =&gt; LoggedOutNickNameController(_repository),
      );
    }
  }
  </code></pre>
  <p>Why are the &quot;initialBindings&quot; not initialised so that my app can &quot;find&quot; them when the app starts up?</p>