DiscreteRange<CTYPE extends Comparable<CTYPE>, ITYPE extends CTYPE> constructor

DiscreteRange<CTYPE extends Comparable<CTYPE>, ITYPE extends CTYPE>(
  1. CTYPE? start,
  2. CTYPE? end, {
  3. bool startInclusive = true,
  4. bool endInclusive = false,
})

Creates a new discrete 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

DiscreteRange(super.start, super.end, {super.startInclusive = true, super.endInclusive = false});