Dependency<T>.lazy constructor

Dependency<T>.lazy(
  1. T callback()
)

Creates a lazy Dependency that will be instantiated when first accessed.

Implementation

factory Dependency.lazy(final T Function() callback) => Dependency._(null, callback);