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. [...]
read-only, inherited
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
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
value → String
Returns the value of the ANGEL_ENV variable; defaults to 'development'.
read-only

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 ==(Object other) → bool
The equality operator. [...]
inherited