FileByteSource class final

A DomeByteSource over a file (random access, nothing loaded up front).

Implemented types

Properties

hashCode → int
The hash code for this object.
no setterinherited
length → int
Total length in bytes.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
Releases the source (idempotent).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(int offset, int count) → Future<Uint8List>
Reads exactly count bytes at offset; throws RangeError past the end.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

open(File file) → Future<FileByteSource>
Opens file for reading.