ByteRange class
One requested byte range. Exactly one of start/end may be null:
start..end → both set (e.g. 0-499).
start.. → end null, meaning "to the end of the resource".
- suffix length → start null, end holds the number of trailing bytes
requested (e.g.
-500 → last 500 bytes).
Constructors
-
ByteRange(int? start, int? end)
-
Creates a byte range from
start and end; see the class doc for how a
null in either position encodes an open-ended or suffix range.
Audited: 2026-06-12 11:26 EDT
const
Properties
-
end
→ int?
-
Last byte offset (inclusive), or null for an open-ended range; for a
suffix range it is the count of trailing bytes.
final
-
hashCode
→ int
-
The hash code for this object.
no setteroverride
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
start
→ int?
-
First byte offset (inclusive), or null for a suffix-length range.
final
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited