Inst<T extends Object>.instance constructor

Inst<T extends Object>.instance(
  1. T? instance, {
  2. ShouldNotify<T>? shouldNotify,
  3. bool skipIfRegistered = true,
})

Implementation

Inst.instance(this.instance,
    {ShouldNotify<T>? shouldNotify, this.skipIfRegistered = true})
    : assert(instance != null),
      factory = null,
      this.shouldUpdate = shouldNotify ?? _notEquals,
      dispose = null,
      t = T;