AssetByteRange constructor

const AssetByteRange(
  1. int start, {
  2. int? end,
})

The bytes from start, asserted not negative, up to end. An end before start is not checked here; length throws for it.

Implementation

const AssetByteRange(this.start, {this.end})
  : assert(start >= 0, 'a range starts at byte 0 or after');