isAscii function

bool isAscii(
  1. dynamic value
)

Implementation

bool isAscii(dynamic value) {
  return !u8aToU8a(value).any(
    (byte) => (byte >= 127) || (byte < 32 && ![9, 10, 13].contains(byte)),
  );
}