ScopeSetCubitExtension extension



scopedCubit<T extends Cubit>(ProviderCreate<T> create, {Qualifier qualifier, bool createdAtStart = false, bool override = false}) ProviderDefinition<T>
Defines a Cubit as scoped provider that will be automatically closed when the scope is closed. The close method of the Cubit instance created by the create will be called when the scope is closed.