Interval class

Constructors

Interval(DateTime start, DateTime end)

Properties

duration Duration
no setter
end DateTime
no setter
hashCode int
The hash code for this object.
no setterinherited
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
setDuration(Duration val) Interval
setEnd(DateTime val) Interval
setStart(DateTime val) Interval
symetricDiffetence(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.
inherited
operator >(Interval other) bool
operator >=(Interval other) bool