readAsText method

void readAsText(
  1. Blob blob, [
  2. String? label
])

Implementation

void readAsText(Blob blob, [String? label]) {
  _readyState = LOADING;
  blob.internalBytes().then((bytes) {
    _result = utf8.decode(bytes, allowMalformed: true);
    _readyState = DONE;
  });
}