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