InstanceProvider<T> constructor

InstanceProvider<T>({
  1. required Type type,
  2. Type? host,
  3. bool eager = true,
  4. bool replace = false,
  5. String scope = "singleton",
})

Implementation

InstanceProvider({required Type type, Type? host, bool eager = true, this.replace = false, String scope = "singleton"})
: _type = type, _eager = eager, _scope = scope {
_host = host ?? runtimeType;
 }