forId static method

ExceptionType forId(
  1. int id
)

Implementation

static ExceptionType forId(int id) =>
    values.firstWhere((element) => element.id == id);