Inject<T> constructor
Inject<T> (
- T creationFunction(), {
- dynamic name,
- bool isLazy = true,
Inject a value or a model.
Implementation
factory Inject(
T Function() creationFunction, {
dynamic name,
bool isLazy = true,
}) {
return Inject._(
ReactiveModel.create(creator: creationFunction),
name,
);
}