Range<TYPE extends Comparable<TYPE>> constructor

Range<TYPE extends Comparable<TYPE>>(
  1. TYPE? _start,
  2. TYPE? _end, {
  3. bool startInclusive = true,
  4. bool endInclusive = false,
})

Creates a new range with the given start and end values and inclusion flags.

start The start value of the range. end The end value of the range. startInclusive Whether the start value is included in the range. endInclusive Whether the end value is included in the range.

Implementation

Range(this._start, this._end, {bool startInclusive = true, bool endInclusive = false})
    : _startInclusive = _start == null ? false : startInclusive,
      _endInclusive = _end == null ? false : endInclusive;