EUniverse.fromValue constructor

EUniverse.fromValue(
  1. int value
)

Implementation

factory EUniverse.fromValue(int value) {
  switch (value) {
    case 0:
      return EUniverse.invalid;
    case 1:
      return EUniverse.public;
    case 2:
      return EUniverse.beta;
    case 3:
      return EUniverse.internal;
    case 4:
      return EUniverse.dev;
    case 5:
      return EUniverse.max;
    default:
      throw UnknownEnumValueException(
        "Unknown value for 'EUniverse'. The value was: '$value'",
      );
  }
}