fromInt static method

RoomError? fromInt(
  1. int code
)

Implementation

static RoomError? fromInt(int code) {
  for (var enumValue in RoomError.values) {
    if (enumValue.code == code) return enumValue;
  }
  return null;
}