of static method

EntityType of(
  1. String? name
)

Implementation

static EntityType of(String? name) {
  return EntityType.values.firstWhere((e) => e.name == name,
    orElse: () => EntityType.unknown,
  );
}