Blob class
The object represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data. Blobs can represent data that isn't necessarily in a JavaScript-native format. The File interface is based on , inheriting blob functionality and expanding it to support files on the user's system.
Constructors
- Blob([Iterable? blobParts, BlobPropertyBag? options])
-
factory
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
-
Available on Blob, provided by the PropsBlob extension
no setter - type → String
-
Available on Blob, provided by the PropsBlob extension
no setter
Methods
-
arrayBuffer(
) → Future< ByteBuffer> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
slice(
[int? start, int? end, String? contentType]) → Blob -
stream(
) → ReadableStream -
text(
) → Future< String> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited