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.

Implementers
Available extensions
Annotations
  • @JS.new()
  • @staticInterop

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>

Available on Blob, provided by the PropsBlob extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
slice([int? start, int? end, String? contentType]) → Blob

Available on Blob, provided by the PropsBlob extension

stream() → ReadableStream

Available on Blob, provided by the PropsBlob extension

text() → Future<String>

Available on Blob, provided by the PropsBlob extension

toString() → String
A string representation of this object.
inherited

Operators

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