AssetByteRange class final

The bytes from start up to end of a file, end not included; to the end of the file when end is null.

Constructors

AssetByteRange(int start, {int? end})
The bytes from start, asserted not negative, up to end. An end before start is not checked here; length throws for it.
const

Properties

end → int?
The byte after the last one wanted; null reads to the end.
final
hashCode → int
The hash code for this object.
no setteroverride
length → int?
How many bytes, when end is known.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
start → int
The first byte wanted.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
of(Uint8List bytes) → Uint8List
bytes, a whole file, cut to this range: what a reader does with a source that could not read a range itself.
toString() → String
A string representation of this object.
override

Operators

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