fromInt static method

LogLevel fromInt(
  1. int val
)

Implementation

static LogLevel fromInt(int val)  {
    if (val < 0 || val >= LogLevel.values.length) {
      throw StateError('Invalid numeric value $val for LogLevel enum.');
    }
    return LogLevel.values[val];
}