isDevelopment property
bool
get
isDevelopment
True when the env APP_ENV is development. Not set means
production, so false. local is false too.
It reads the env on each call, so it works before the server starts
and in every isolate. Use it for config like prettyPrint or a
database debug flag.
Implementation
bool get isDevelopment => Env.appEnv == 'development';