Once you have declared some modules and you have started Koin, how can you retrieve your instances in your Flutter widgets or Services.
Widgets & Service as KoinComponents
The Flutter widgets are extended with the KoinComponents extension. You gain access to:
inject()- lazy evaluated instance from Koin container
get()- eager fetch instance from Koin container
For a module that declares a 'presenter' component:
We can declare a property as lazy injected or we can just directly get an instance: