ByteRange constructor

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

Bytes start to end, both included.

Implementation

ByteRange(int start, int end) : _start = start, _end = end, _suffix = null {
  if (start < 0 || end < start) {
    throw ArgumentError('Not a byte range: $start-$end.');
  }
}