text method

Future<String?> text()

Reads the content of the blob as text asynchronously.

Returns:

  • a Future that completes with the text of the blob if the read operation was successful,
  • a Future that completes with null if the read operation failed.

Implementation

Future<String?> text() =>
    js_util.promiseToFuture(js_util.callMethod(this, 'text', <Object?>[]));