Closed blackkara closed 3 years ago
Hi @blackkara,
In my case, FormStore
doesn't need a repository but still if you have a case where you want to pass the repository then have a look at the code below:
FormStore _formStore = FormStore(getIt<Repository>());
or
@override
void didChangeDependencies() {
super.didChangeDependencies();
_formStore = = FormStore(getIt<Repository>());
}
Thanks.
You just injected the
repository
toThemeStore
andLanguageStore
in main.dart, thats okay.So what about the
FormStore
? As the title says, how to inject therepository
?