ByteRange.suffix constructor

ByteRange.suffix(
  1. int length
)

The last length bytes of the file (all of it, when it is shorter).

Implementation

ByteRange.suffix(int length) : _start = null, _end = null, _suffix = length {
  if (length < 1) throw ArgumentError('Not a byte range: the last $length.');
}