getMessage static method

String getMessage(
  1. int code
)

获取错误码对应的消息

Implementation

static String getMessage(int code) {
  return errorMessages[code] ?? '未知错误码: $code';
}