java-james / flutter_dotenv

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

Get variable values as `int`, `double` and `bool` #65

Open Tandashi opened 1 year ago

Tandashi commented 1 year ago

Allows to get the variable values casted to the specific type. If the variable does not exist, the fallback is used. However, when also no fallback is provided, an AssertionError is thrown. Furthermore, a FormatException is thrown when the variable exists, but the value can not be casted to the specific type.

java-james commented 1 year ago

Thanks for making a PR for this feature. Have had a skim and looks good will make time for a proper look & a release if merged!

Tandashi commented 1 year ago

Resolved the merge conflicts :)

Any update on this? Just curious.

Tandashi commented 1 year ago

@java-james Are there any updates on this / is there anything that still needs to be done before this can be merged?