Bind<T extends Object> constructor

Bind<T extends Object>(
  1. T inject(
    1. Inject i
    ), {
  2. bool isSingleton = true,
  3. bool isLazy = true,
  4. bool export = false,
})

Implementation

Bind(this.inject,
    {this.isSingleton = true, this.isLazy = true, this.export = false})
    : assert((isSingleton || isLazy),
          r"'singleton' can't be false if 'lazy' is also false");