getConfigTypeEnum function

ConfigType getConfigTypeEnum(
  1. String? t
)

Implementation

ConfigType getConfigTypeEnum(String? t) {
  try {
    final val = ConfigType.values.byName(t ?? "");
    return val;
  } catch (e) {
    debugPrint("ConfigType <$t> not found.");
    return ConfigType.text;
  }
}