text method

Future<String> text()

Returns a promise that resolves with a string containing the entire contents of the Blob interpreted as UTF-8 text.

MDN Reference

Implementation

Future<String> text() => utf8.decodeStream(stream());