AngelEnvironment class
Queries the environment's ANGEL_ENV
value.
Constructors
- AngelEnvironment([String? _customValue])
-
You can optionally provide a custom value, in order to override the system's
value.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDevelopment → bool
-
Returns whether the value is
'development'
.no setter - isProduction → bool
-
Returns whether the value is
'production'
.no setter - isStaging → bool
-
Returns whether the value is
'staging'
.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
Returns the value of the
ANGEL_ENV
variable; defaults to'development'
.no setter
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