not_ use_ environment
Do not use environment declared variables.
This rule is available as of Dart 2.9.0.
Using values derived from the environment at compile-time, creates hidden global state and makes applications hard to understand and maintain.
hasEnvironment factory constructors.
const loggingLevel = bool.hasEnvironment('logging') ? String.fromEnvironment('logging') : null;
To enable the
do_not_use_environment under linter > rules in your
linter: rules: - do_not_use_environment