lazyPut<S> static method
Registers a lazy dependency builder.
The builder runs only when the dependency is first requested.
- If
isFactoryis true,builderruns on every request. - If
permanentis true, registration survives a non-forced reset. Scope dispose always force-clears permanents.
Implementation
static void lazyPut<S>(S Function() builder,
{String? tag, bool permanent = false, bool isFactory = false}) {
Ls.lazyPut<S>(builder,
tag: tag, permanent: permanent, isFactory: isFactory);
}