Inject<T> constructor

Inject<T>(
  1. T creationFunction(), {
  2. dynamic name,
  3. 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,
  );
}