Blob class

A sequence of bytes. The bytes don't need to fit in the memory.

Constructors

Blob()
const
Blob.fromBytes(List<int> data)
Constructs a blob that contains the bytes.
factory
Blob.fromString(String s)
Constructs a blob that contains the string, encoded with UTF-8.
const
factory
Blob.fromUri(String uri, {HttpClient httpClient})
factory

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getBlobMetadata() Future<BlobMetadata>
Reads possible metadata.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
read({void onBlobMetadata(BlobMetadata metadata)}) Stream<List<int>>
Reads the blob as a stream of chunks.
readAsBytes({void onBlobMetadata(BlobMetadata metadata)}) Future<List<int>>
Reads the blob as bytes.
readAsJson({void onBlobMetadata(BlobMetadata metadata)}) Future<Object>
Reads the blob as a JSON tree.
readAsString({void onBlobMetadata(BlobMetadata metadata)}) Future<String>
Reads the blob as a string.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited