BaseConfig class abstract
The base configuration model
- Implementers
Constructors
-
BaseConfig([Map<
String, String> ? env])
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
-
augmentWith(
Map< String, String> env) → String - Adds a set of values to the environment and returns the token for removing the augments. Augments can be removed calling removeAugment with the returned token.
-
getOr(
String name, {required String fallback}) → String -
Gets a value by
name
from the underlying config map, or thefallback
if the underlying map does not contain thename
. -
getOrThrow(
String name) → String -
Gets a value by
name
from the underlying config map, or throws a MissingConfigError if the underlying map does not contain thename
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAugment(
String token) → Map< String, String> ? -
Returns the removed environment variable set associated to the
token
. -
toString(
) → String -
A string representation of this object.
inherited
-
tryGet(
String name) → String? -
Gets a value by
name
from the underlying config map, ornull
if the underlying map does not contain thename
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited