koin_disposable.dart import is dedicated to bring Flutter BLoC Pattern features.
koin_disposable.dart makes it easy to use koin with any state management package that uses streams behind the scenes.
koin_disposable.dart introduces definition API keywords that comes in complement of single and scoped, to help declare a Bloc component.
disposabledefinition, create an
disposethe object at the end of the global koin context lifetime.
scopedDisposabledefinition, create an object
disposewhen the associated scope is closed(Lifetime end).
Declaring a bloc component means that Koin container will keep a unique instance
stopKoin is called.
Your declared bloc component must implement the
To declare a scoped bloc definition, use the
scopedBloc function like follow.
The scoped instance will be automatically
disposed when the scope is closed.