sha_env library
Yet another library to handle DotEnv file in Dart /// A few steps to begin :
- Create a .env file at the root of your projet
- Put values in your file in the following way : KEY=WALUE
- Put ShaEnv().loadSync(); after your main()
- Use the top level
env['key']
to get your environment variables !
Classes
- ShaEnv
- Will handle the loading from the .env file
Properties
-
env
→ UnmodifiableMapView<
String, dynamic> -
Global UnmodifiableMapView hodling the variables
Will be empty if called before
ShaEnv().load()
no setter