convert method

  1. @override
String convert(
  1. List<int> input, [
  2. int start = 0,
  3. int? end,
  4. int replacementCodepoint = unicodeReplacementCharacterCodepoint,
])
override

Converts input and returns the result of the conversion.

Implementation

@override
String convert(List<int> input,
    [int start = 0,
    int? end,
    int replacementCodepoint = unicodeReplacementCharacterCodepoint]) {
  return String.fromCharCodes(
    Utf32BytesDecoder(
      input,
      start,
      end == null ? input.length : end - start,
      replacementCodepoint,
    ).decodeRest(),
  );
}