isTokenText function

bool isTokenText(
  1. String value
)

True for 1 to 8192 characters, each in U+0021 to U+007E: what may be sent as a token.

Implementation

bool isTokenText(String value) =>
    value.isNotEmpty && _hasOnlyCodeUnits(value, from: 0x21);