lazyPutAsync<S> static method
A shorthand for creating a route-bound scope and registering an async lazy dependency.
Implementation
static LRouteScope lazyPutAsync<S>(
Future<S> Function() builder, {
Key? key,
required Widget child,
String? name,
String? tag,
bool permanent = false,
bool isFactory = false,
List<Object?>? args,
}) {
return LRouteScope(
key: key,
name: name,
args: args,
dependencyFactory: (s) {
s.lazyPutAsync<S>(
builder,
tag: tag,
permanent: permanent,
isFactory: isFactory,
);
},
child: child,
);
}