asyncLazySingleton top-level constant
Instance
const asyncLazySingleton
Annotate class as async lazy singleton mvvm instance
@asyncLazySingleton
class NavigationWrapper extends BaseWrapper<Map<String, dynamic>> {
@override
DependentMvvmInstanceConfiguration get configuration =>
DependentMvvmInstanceConfiguration(
isAsync: true,
);
}
Implementation
const asyncLazySingleton = Instance(
singleton: true,
isLazy: true,
isAsync: true,
);