isValidError static method

bool isValidError(
  1. String errorCode
)

Check if a string is a valid error code

Implementation

static bool isValidError(String errorCode) {
  return error.hasMatch(errorCode);
}