ClassType.name constructor

ClassType.name(
  1. String typeName
)

Implementation

factory ClassType.name(String typeName) {
  var find = values.firstWhereOrNull((element) => element.value == typeName);

  if (find == null) {
    print(typeName);
    throw typeName;
  }
  return find;
}