fromCode static method

ErrorCode? fromCode(
  1. String code
)

Implementation

static ErrorCode? fromCode(String code) {
  for (var value in values) {
    if (value.code == code) return value;
  }
  return null;
}