moved to
Palace
repo
- this packages is made for
place
package - but you can use it as you wish
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
await loadEnv();
final value = env('db_user');
print(value) // root
this package will skip the comments on your .env
file ⏭