Blob class
A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
The size, in bytes, of the data contained in the Blob object.
no setter
- type → String
-
A string indicating the MIME type of the data contained in the Blob.
If the type is unknown, this string is empty.
final
Methods
-
arrayBuffer(
) → Future< ArrayBuffer> - Returns a promise that resolves with an ArrayBuffer containing the entire contents of the Blob as binary data.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
slice(
[int? start, int? end, String? contentType]) → Blob - Returns a new Blob object containing the data in the specified range of bytes of the blob on which it's called.
-
stream(
) → Stream< Uint8List> - Returns a Stream that can be used to read the contents of the Blob.
-
text(
) → Future< String> - Returns a promise that resolves with a string containing the entire contents of the Blob interpreted as UTF-8 text.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited