字符串是否是中文
static bool isChinese(String s) { if (s.length > 16 || s.length < 9) return false; return hasMatch(s, r'^[\u4e00-\u9fa5]+$'); }