Environment class

Environment is a class that provides preset constants to identify different types of environments where your app might be running.

Currently, it provides the following presets:

  • dev for development environment
  • prod for production environment
  • test for testing environment

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

Constants

dev → const String
preset of common env name 'dev'
prod → const String
preset of common env name 'prod'
test → const String
preset of common env name 'test'