isZh static method

bool isZh(
  1. String input
)

Returns whether the input matches the Chinese character regex.

Implementation

static bool isZh(String input) {
  return '〇'.compareTo(input) <= 0 && '鿿'.compareTo(input) >= 0;
}