isAscii static method

bool isAscii(
  1. String value
)

check if the string contains ASCII chars only

Implementation

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