метод convert
override
Преобразует codeUnits UTF-8 (список беззнаковых 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.19.6/dart-convert/Utf8Decoder/convert.html