fromString static method

DartamakerFormatterTypes? fromString(
  1. String formatterType
)

From string

Implementation

static DartamakerFormatterTypes? fromString(String formatterType) {
  DartamakerFormatterTypes? ret;
  for (final type in DartamakerFormatterTypes.values) {
    if (formatterType == type.toString().split('.')[1]) {
      ret = type;
      break;
    }
  }
  return ret;
}