isAscii function

bool isAscii(
  1. String str
)

check if the string contains ASCII chars only

Implementation

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