SingleCalendarValue class

Calendar value representing a single selected date.

Encapsulates a single DateTime selection and provides lookup functionality to determine if a given date matches the selected date. Used primarily with CalendarSelectionMode.single.

Example:

final singleValue = SingleCalendarValue(DateTime(2024, 3, 15));
final lookup = singleValue.lookup(2024, 3, 15);
print(lookup == CalendarValueLookup.selected); // true
Inheritance

Constructors

SingleCalendarValue(DateTime date)

Properties

date DateTime
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
view CalendarView
no setteroverride

Methods

lookup(int year, [int? month, int? day]) CalendarValueLookup
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMulti() MultiCalendarValue
override
toRange() RangeCalendarValue
override
toSingle() SingleCalendarValue
override
toString() String
A string representation of this object.
override

Operators

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