text method

Future<String> text()

Returns a promise that resolves with a text representation of the request body.

MDN reference

Implementation

Future<String> text() => blob().then((blob) => blob.text());