ByteRange constructor

ByteRange(
  1. int start,
  2. int end
)

Implementation

ByteRange(this.start, this.end) {
  if (!(start == 0 && end == -1 || start >= 0 && end >= start)) {
    throw ArgumentError('Invalid media range [$start, $end]');
  }
}