isHalfWidth function

bool isHalfWidth (
  1. String str
)

check if the string contains any half-width chars

Implementation

bool isHalfWidth(String str) {
  return _halfWidth.hasMatch(str);
}