skip to Main Content

Flutter injectable package to inject AppLocalizations

I have a cubit that looks like this: @injectable class SomeCubit extends Cubit<SomeState> { SomeCubit({ required this.logger, required this.someRepository, required this.flutterLocalNotificationsPlugin, required this.l10n, // AppLocalizations required this.anotherRepository, }) : super(SomeInitial()); } Running the injectable generator throws an error about InvalidType…

VIEW QUESTION
Back To Top
Search