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