NyEnv class abstract
Base class for environment configuration.
Users should not extend this class directly. Instead, use the
metro make:env command to generate an Env class that implements
the required functionality.
The generated class will be registered with Nylo during app initialization.
Constructors
- NyEnv()
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
-
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
Static Methods
-
containsKey(
String key) → bool - Checks if an environment variable exists.
-
get(
String key, {dynamic defaultValue}) → dynamic - Gets an environment variable by key.