escapedString property

String get escapedString

Implementation

String get escapedString {
  return runes.map((int rune) {
    if (rune > 127) {
      return '\\u${rune.toRadixString(16).padLeft(4, '0').toUpperCase()}';
    } else {
      return String.fromCharCode(rune);
    }
  }).join();
}