fromName static method

ConfigSection? fromName(
  1. String value
)

Resolves a configuration section from the provided value.

Implementation

static ConfigSection? fromName(String value) {
  return switch (value.trim().toLowerCase()) {
    'flavors' => ConfigSection.flavors,
    'environment' => ConfigSection.environment,
    'firebase' => ConfigSection.firebase,
    'localization' => ConfigSection.localization,
    _ => null,
  };
}