EnvironmentInstance<K, C> class

Base environment wrapper used by both typed and non-typed variants.

Generic over:

  • K: environment key type, e.g. AppEnvironment or String.
  • C: configuration type, e.g. AppConfig.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearCache() → void
Clears cached factories; the next read starts a fresh load.
current() → Future<C>?
Resolves explicit environment input or the compile-time define.
currentKey() → K
Returns the key resolved from explicit input or the compile-time define.
getEnvironment(String raw) → Future<C>?
Resolve raw via the resolver and return its configuration.
getEnvironmentByKey(K env) → Future<C>?
Directly fetch configuration for env.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited