singleton<T extends Store<Object, Object> > static method
Bind<T>
singleton<T extends Store<Object, Object> >(
- T factoryFunction(
- Injector i
- bool export = false,
Implementation
static Bind<T> singleton<T extends Store>(
T Function(Injector<dynamic> i) factoryFunction, {
bool export = false,
}) {
return Bind<T>(
factoryFunction,
export: export,
isLazy: false,
onDispose: (store) {
store.destroy();
},
selector: _generateNotifier,
);
}