value property
String
get
value
Triggers decoding (or returns the cached result on repeat access).
Implementation
String get value {
final cached = _decoded;
if (cached != null) {
return cached;
}
if (isAsciiBytes(_bytes)) {
return _decoded = String.fromCharCodes(_bytes);
}
return _decoded = utf8.decode(_bytes, allowMalformed: true);
}