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

isDevelopment → bool
Returns whether the value is 'development'.
read-only
isProduction → bool
Returns whether the value is 'production'.
read-only
isStaging → bool
Returns whether the value is 'staging'.
read-only
value → String
Returns the value of the ANGEL_ENV variable; defaults to 'development'.
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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