Interval class

Constructors

Interval.new(DateTime start, DateTime end)
Interval.fromEnd(DateTime end, Duration duration)
Interval.fromMiddle(DateTime middle, Duration duration)
Interval.fromStart(DateTime start, Duration duration)

Properties

duration Duration
no setter
end DateTime
no setter
hashCode int
The hash code for this object.
no setterinherited
middle DateTime
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start DateTime
no setter

Methods

contains(Interval interval) bool
cross(Interval other) bool
difference(Interval other) Interval?
equals(Interval other) bool
includes(DateTime date) bool
intersection(Interval other) Interval?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setDurationFromEnd(Duration val) Interval
setDurationFromMiddle(Duration val) Interval
setDurationFromStart(Duration val) Interval
setEnd(DateTime val) Interval
setStart(DateTime val) Interval
symetricDifference(Interval other) List<Interval?>
@deprecated use symmetricDifference instead
symmetricDifference(Interval other) List<Interval>
toString() String
A string representation of this object.
override
union(Interval other) Interval

Operators

operator <(Interval other) bool
operator <=(Interval other) bool
operator ==(Object other) bool
The equality operator.
override
operator >(Interval other) bool
operator >=(Interval other) bool