asStringAsync property
Implementation
Future<String?> get asStringAsync async {
var s = asString;
if (s != null) return s;
var bytes = await asByteBufferAsync;
if (bytes == null) return null;
var bits16 = mimeType != null && mimeType!.isCharsetUTF16;
var bytesLists = bits16 ? bytes.asUint16List() : bytes.asUint8List();
return String.fromCharCodes(bytesLists);
}