convert method

String convert(
  1. List<int> codeUnits,
  2. [int start = 0,
  3. int? end]
)
override

Converts the UTF-8 codeUnits (a list of unsigned 8-bit integers) to the corresponding string.

Uses the code units from start to, but not including, end. If end is omitted, it defaults to codeUnits.length.

If the codeUnits start with the encoding of a unicodeBomCharacterRune, that character is discarded.

Implementation

String convert(List<int> codeUnits, [int start = 0, int? end]) =>
    _Utf8Decoder(_allowMalformed).convertSingle(codeUnits, start, end);