AppEnvironment enum

The deployment mode the app is running in, read from APP_ENV.

Inheritance
Available extensions

Values

local → const AppEnvironment
staging → const AppEnvironment
production → const AppEnvironment

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isLocal bool
no setter
isProduction bool
no setter
isProtected bool
Whether destructive commands must be confirmed with --force here.
no setter
isStaging bool
no setter
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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

current() AppEnvironment
Reads APP_ENV. An unset or unrecognised value resolves to production so a misconfigured deployment fails safe.

Constants

values → const List<AppEnvironment>
A constant List of the values in this enum, in order of their declaration.