tryParse static method

EventType? tryParse(
  1. int value
)

Implementation

static EventType? tryParse(int value) {
  for (EventType event in EventType.values) {
    if (event.value == value) {
      return event;
    }
  }
  return null;
}