isChinese static method

bool isChinese(
  1. String value
)

验证中文

Implementation

static bool isChinese(String value) {
  return RegExp(r"[\u4e00-\u9fa5]").hasMatch(value);
}