isAsciiBytes function
Returns true when every byte is ASCII (≤ 0x7F).
Implementation
bool isAsciiBytes(Uint8List data) {
if (data.length >= 64) return data[0] < 128 && _isAsciiBlock(data);
for (var i = 0; i < data.length; i++) {
if (data[i] > 0x7F) {
return false;
}
}
return true;
}