getByValue static method

EventType getByValue(
  1. int value
)

Implementation

static EventType getByValue(int value) {
  return EventType.values.firstWhere((x) => x.value == value);
}