getByType static method

int getByType(
  1. EventType type
)

Implementation

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