isAscii function
Checks if the string contains only ASCII characters.
Returns true if the string only contains ASCII characters (code points 0-127),
otherwise returns false.
Example:
isAscii('abc123'); // true
isAscii('äbc123'); // false
Implementation
bool isAscii(String str) => _isAscii(str);