DateTimeRange class

Encapsulates a start and end DateTime that represent the range of dates between them.

See also:

Annotations
  • @immutable

Constructors

DateTimeRange({@required DateTime start, @required DateTime end})
Creates a date range for the given start and end DateTime. [...]
const

Properties

duration Duration
Returns a Duration of the time between start and end. [...]
read-only
end DateTime
The end of the range of dates.
final
hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
start DateTime
The start of the range of dates.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator. [...]
override