BindContract<T extends Object> constructor

BindContract<T extends Object>(
  1. T factoryFunction(
    1. Injector i
    ), {
  2. bool isSingleton = true,
  3. bool isLazy = true,
  4. bool export = false,
  5. bool isScoped = false,
  6. bool alwaysSerialized = false,
})

Implementation

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