end method

  1. @override
CTYPE? end({
  1. bool? inclusive,
})
override

If inclusive is provided and differs from the current end inclusion, the end value is adjusted to the next or previous value accordingly.

inclusive Optional. If provided, overrides the end inclusion.

Returns the end value of the range, optionally with inclusion overridden.

Implementation

@override
CTYPE? end({bool? inclusive}) =>
    _end == null || inclusive == null || _endInclusive == inclusive
        ? _end
        : inclusive
        ? _prev(_end)
        : _next(_end);