DayState class
Represents the visual and interactive state of a calendar day cell.
Passed to CalendarDayBuilder so developers can render custom widgets based on selection, range, marked, today, and disabled status.
Constructors
Properties
- date → DateTime
-
The date represented by this cell.
final
- day → int
-
Convenience getter for the day-of-month number (1..31).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisabled → bool
-
Whether this day is disabled (cannot be interacted with).
final
- isInRange → bool
-
Whether this day is inside the selected date range.
final
- isRangeEnd → bool
-
Whether this day is the ending date of the selected range.
final
- isRangeStart → bool
-
Whether this day is the starting date of the selected range.
final
- isSelected → bool
-
Whether this day is currently selected (single selection or endpoint of range).
final
- isToday → bool
-
Whether this day represents today's date.
final
- markedModel → MarkedDaysModel?
-
The MarkedDaysModel that applies to this date, if any.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited