CalendarSelection class

A selected range on the calendar.

Constructors

CalendarSelection(String? id, Date? start, Date? end)
Creates a calendar selection. null dates are interpreted as open-ended ranges.
CalendarSelection.guessOrder(String? id, Date a, Date? b)
Tries to infer the start and end dates from the two given dates. Doesn't support null dates.

Properties

end Date?
final
hashCode int
The hash code for this object.
no setteroverride
id String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start Date?
final

Methods

clamp({Date? min, Date? max}) CalendarSelection
Returns a copy of this CalendarSelection clamped to min, max.
contains(Date? date) bool
Checks whether this selection's confirmed range contains the given time. If this selection's start or end are null, that's interpreted as an open-ended range.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object o) bool
The equality operator.
override