isAscii function

bool isAscii(
  1. String str
)

check if the string is ascii

Implementation

bool isAscii(String str) {
  return _ascii.hasMatch(str);
}