isAsciiControlCharacter property
bool
get
isAsciiControlCharacter
True if the string has 1 character and it's an ASCII control character.
Implementation
bool get isAsciiControlCharacter =>
isNotEmpty &&
codeUnits.length == 1 &&
(_between(codeUnitAt(0), 0x0000, 0x001F) || codeUnitAt(0) == 0x007F);