detectEnvironment method

String detectEnvironment()

Detect environment automatically

Implementation

String detectEnvironment() {
  if (kDebugMode) {
    return 'development';
  }
  return 'production';
}