fromInt static method

DebugFlag fromInt(
  1. int val
)

Implementation

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