buildAsciiChars function

Iterable<int> buildAsciiChars(
  1. String text
)

Implementation

Iterable<int> buildAsciiChars(String text) =>
    List.generate(text.length, (index) {
      var codeUnit = text.codeUnitAt(index);
      return codeUnit > 0x7F ? '_'.codeUnitAt(0) : codeUnit;
    });