lazyPutAsync<S> method
Registers an asynchronous builder for lazy instantiation.
Implementation
Future<S> Function() lazyPutAsync<S>(
Future<S> Function() builder, {
String? tag,
bool permanent = false,
bool isFactory = false,
}) {
final scope = _ScopeProvider.of(_context);
if (scope != null) {
return scope.lazyPutAsync<S>(
builder,
tag: tag,
permanent: permanent,
isFactory: isFactory,
);
}
return Levit.lazyPutAsync<S>(
builder,
tag: tag,
permanent: permanent,
isFactory: isFactory,
);
}