isAscii function

bool isAscii(
  1. dynamic value
)

Implementation

bool isAscii(dynamic value) {
  return value != null
      ? !u8aToU8a(value)
          .any((byte) => (byte >= 127) || (byte < 32 && !FORMAT.contains(byte)))
      : isString(value);
}