DateTimeRange class Null safety

Inheritance

Constructors

DateTimeRange({Bound<DateTime>? lowerBound, Bound<DateTime>? upperBound})
DateTimeRange.empty()
DateTimeRange.parse(String range)
factory

Properties

empty bool
latefinalinherited
hashCode int
The hash code for this object.
read-onlyinherited
isDiscrete bool
read-onlyinherited
lowerBound LowerBound<DateTime>
finalinherited
notEmpty bool
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
upperBound UpperBound<DateTime>
finalinherited

Methods

comparator(DateTime value1, DateTime value2) int
Returns a negative number if value1 is less than value2, zero if they are equal, and a positive number if value1 is greater than value2. Almost the same: value1 - value2
override
contains(Range<DateTime> range) bool
inherited
containsElement(DateTime element) bool
inherited
createRange({Bound<DateTime>? lowerBound, Bound<DateTime>? upperBound, bool empty = false}) Range<DateTime>
override
difference(Range<DateTime> range) Range<DateTime>
  • inherited
    equal(Range<DateTime> range) bool
    inherited
    intersection(Range<DateTime> range) Range<DateTime>
    empty *
    inherited
    isAdjacentTo(Range<DateTime> range) bool
    inherited
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a non-existent method or property is accessed.
    inherited
    notEqual(Range<DateTime> range) bool
    inherited
    notExtendToTheLeftOf(Range<DateTime> range) bool
    inherited
    notExtendToTheRightOf(Range<DateTime> range) bool
    inherited
    overlap(Range<DateTime> range) bool
    inherited
    strictlyLeftOf(Range<DateTime> range) bool
    inherited
    strictlyRightOf(Range<DateTime> range) bool
    inherited
    toString() String
    A string representation of this object.
    inherited
    union(Range<DateTime> range) Range<DateTime>
    result of range union would not be contiguous +
    inherited

    Operators

    operator ==(Object other) bool
    The equality operator.
    inherited