WebBlobBytesFile class final

A read-only BytesFile over an immutable Web Blob.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isClosed → bool
no setter
length → Future<int>
Blob size in bytes.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsConcurrentReads → bool
Whether concurrent positional reads are safe.
no setter

Methods

append(Uint8List src, {int start = 0, int? end}) → Future<int>
Appends to the end.
close() → Future<void>
Closes the file; further operations throw StateError.
delete() → Future<void>
Closes and deletes the underlying file.
flush() → Future<void>
Flushes pending writes to the backing store.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readAt(int offset, Uint8List dst, {int start = 0, int? end}) → Future<int>
Reads into dst[start..end) at offset. Returns bytes read (0 at EOF).
toString() → String
A string representation of this object.
inherited
truncate(int newLength) → Future<void>
Changes the logical length.
writeAt(int offset, Uint8List src, {int start = 0, int? end}) → Future<int>
Writes src[start..end) at offset. Returns bytes written.

Operators

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

Static Methods

fromBlob(JSObject blob, {int cacheLimit = 8 << 20}) → WebBlobBytesFile
Creates a read-only file over blob.