illegalCharacter static method

void illegalCharacter(
  1. int c
)

Implementation

static void illegalCharacter(int c) {
  String hex = (c).toRadixString(16);
  hex = hex.padLeft(4, '0');
  throw ArgumentError('Illegal character: chr($c) (0x$hex)');
}