ErrorCode constructor

ErrorCode(
  1. int value
)

Validates and creates a ErrorCode value.

Implementation

factory ErrorCode(int value) {
  return ErrorCode._(value);
}