AtEnv class

AtEnv is a helper class to load in the environment variables from the .env file

Constructors

AtEnv()

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

Static Properties

appApiKey String?
Returns the value for 'API_KEY' in the .env file.
no setter
appNamespace String
Returns the value for 'NAMESPACE' in the .env file.
no setter
dotenvInstance ↔ DotEnv
getter/setter pair
rootDomain String
Returns the value for 'ROOT_DOMAIN' from the .env file.
no setter
rootEnvironment → RootEnvironment
Returns RootEnvironment.Production if appApiKey has a value. Returns RootEnvironment.Staging if appApiKey is null.
no setter

Static Methods

getEnv(String key, {dynamic fallback}) → dynamic
Returns the value for key in the .env file.
load({Map<String, String> mergeWith = const <String, String>{}}) Future<void>
Load the environment variables from the .env file.