Метод convert
override
Преобразует UTF-8 codeUnits (список беззнаковых 8-битовых целых чисел) в соответствующую строку.
Использует код единиц с start до, но не включая, end. Если end опущен, он по умолчанию равен codeUnits.length.
Если codeUnits начинаются с кодирования unicodeBomCharacterRune, этот символ отбрасывается.
Реализация
String convert(List<int> codeUnits, [int start = 0, int? end]) {
// Allow the implementation to intercept and specialize based on the type
// of codeUnits.
var result = _convertIntercepted(_allowMalformed, codeUnits, start, end);
if (result != null) {
return result;
}
return _Utf8Decoder(_allowMalformed).convertSingle(codeUnits, start, end);
}
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-convert/Utf8Decoder/convert.html