java-james / flutter_dotenv

Loads environment variables from `.env`.
https://pub.dartlang.org/packages/flutter_dotenv
MIT License
209 stars 46 forks source link

Include the name of the variable in the get error message #53

Closed hitokiri82 closed 1 year ago

hitokiri82 commented 2 years ago

This allows for more useful exception messages

hitokiri82 commented 2 years ago

I algo changed dotenv.get to throw an Exception instead of asserting that the value of the variable is not null. That way the check works in production builds.