flutter_dotenv
flutter_dotenv copied to clipboard
`Exception`s should be thrown instead of `Error`s
https://dart-lang.github.io/linter/lints/avoid_catching_errors.html
I'm trying to catch EmptyEnvFileError
.
Perhaps if the env fle you plan to use might be empty, you can check if its empty can catch that instead?
Actually I'm not really sure about the need for that error, would it be better to just treat empty files as an empty map?
would it be better to just treat empty files as an empty map?
That's the behaviour I expected. The package doesn't perform actions that require the map to be non empty.