getLabel static method

String getLabel(
  1. int? code
)

Implementation

static String getLabel(int? code) {
  if (code == null || !_errorCodes.containsKey(code)) {
    return 'UNKNOWN ERROR CODE - FAILURE';
  }
  return ' "$code" : ${_errorCodes[0]!}';
}