BlocModuleExtension extension

on

Methods

cubit<T extends Cubit>(ProviderCreate<T> create, {Qualifier qualifier, bool createdAtStart = false, bool override = false}) ProviderDefinition<T>
Defines a Cubit as single provider that will be automatically closed. The close method of the Cubit created by the create will be called when the global context of the koin is finalized.
scopeOneCubit<T extends Cubit, TScope>(ProviderCreate<T> create, {Qualifier qualifier, bool createdAtStart = false, bool override = false}) ProviderDefinition<T>
Declare in a simplified way a scope that has only one a Cubit by create. Declare a Cubit scoped provider T for scope TScope. Declare and define a scoped with just one line.