fromCode static method

RecordingErrorCode fromCode(
  1. int code
)

Implementation

static RecordingErrorCode fromCode(int code) {
  if (code < 100 || code >= 100 + values.length) {
    throw StateError('Unknown AimuxRecordingErrorCode: $code');
  }
  return values[code - 100];
}