Flutter Getx - “Xxx” not found. You need to call “Get.put(Xxx())” - But i have called Get.put(Xxx())
问题 I have this global bindings class to initialise some services and I need it to be initialised straight away: 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<AuthenticationService>