queen_env 0.0.2-beta queen_env: ^0.0.2-beta copied to clipboard
.env files reader part of queen packages
Queen Env
#
Part of Queen Packages 👑
#
Motivation #
- this packages is made for
place
package - but you can use it as you wish
Content #
loadEnv()
function to load the content of the .env fileenv(String key)
function to get the value by the key in case the key does not exist it will return empty stringenvOrNull(String key)
same as above but it will return null if the key does not exits
example #
await loadEnv();
final value = env('db_user');
print(value) // root
bonus #
this package will skip the comments on your .env
file ⏭