current property
Environment
get
current
Implementation
static Environment get current {
const flavor = String.fromEnvironment(
'FLAVOR',
defaultValue: 'development',
);
switch (flavor.toLowerCase()) {
case 'production':
return Environment.production;
default:
return Environment.development;
}
}