instance<T extends Object> static method

Bind<T> instance<T extends Object>(
  1. T instance, {
  2. bool export = false,
})

Bind an already exist 'Instance' of object..

Implementation

static Bind<T> instance<T extends Object>(T instance, {bool export = false}) {
  return Bind<T>((i) => instance,
      isSingleton: false, isScoped: false, isLazy: true, export: export);
}