lazyPutAsync<S> static method
Registers an asynchronous dependency in the active scope.
Use Ls.findAsync to retrieve the instance.
Use tag to differentiate multiple instances of the same type.
Set permanent to true to survive a non-forced reset only.
Scope LevitScope.dispose always force-clears permanents.
Set isFactory to true to re-run the builder for every findAsync call.
Implementation
static Future<S> Function() lazyPutAsync<S>(Future<S> Function() builder,
{String? tag, bool permanent = false, bool isFactory = false}) {
return currentScope.lazyPutAsync<S>(builder,
tag: tag, permanent: permanent, isFactory: isFactory);
}