RangeHeaderItem class

Represents an individual range, with an optional start index and optional end index.

Implemented types

Constructors

RangeHeaderItem.new([int start = -1, int end = -1])
const

Properties

end int
The index at which this chunk ends. May be -1.
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
The index at which this chunk begins. May be -1.
final

Methods

compareTo(RangeHeaderItem other) int
Compares this object to another object.
override
consolidate(RangeHeaderItem other) RangeHeaderItem
Joins two items together into the largest possible range.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overlaps(RangeHeaderItem other) bool
toContentRange([int? totalSize]) String
Creates a representation of this instance suitable for a Content-Range header.
toString() String
A string representation of this object.
override

Operators

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