ShaEnv class

Will handle the loading from the .env file

Constructors

ShaEnv({String path = ".", bool isProduction = false, bool isDebug = false, bool includePlatformEnvironment = false})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
includePlatformEnvironment bool
if set to true, varaibles from Platform.environment will aslo be loaded into our env
final
isDebug bool
if set to true, the file used gonna be .env.production
final
isProduction bool
if set to true, the file used gonna be .env.production Will supersede isDebug
final
path String
The path for the .env File is if isn't in the Dart/Flutter project
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

load() Future<bool>
Will load the environment variables asynchrosnously
loadSync() bool
Will load the environment variables synchronously
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