Environment class
Constructors
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
-
add(
String key, dynamic value) → Environment -
get(
String key) → String? - Get environment key from .env file
-
getOr<
T extends dynamic> (String key, {T? defaultValue}) → T? -
getOrFail(
String key, {String? message}) → String - Get environment key from .env file
-
load(
) → Future< Environment> -
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