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
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