static String getStateName(int code) { String? value = stateNameMap[code]; if (value == null) { return '未知'; } return value; }