DesignCalendarDay class
One day as the grid paints it.
- Annotations
Constructors
- DesignCalendarDay({required DateTime date, required bool inMonth, required bool isToday, required bool selected, required bool isRangeStart, required bool isRangeEnd, required bool inRange, required bool inPreview, required bool isPreviewEnd, required bool enabled, required bool focused})
-
A day; the controller makes these.
const
Properties
- date → DateTime
-
The day.
final
- enabled → bool
-
Whether it can be chosen.
final
- focused → bool
-
Whether the keyboard is on it (ring it while the grid has focus; the
cell's states carry WidgetState.focused then).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inMonth → bool
-
Whether it belongs to the month around it (else a neighbour's, shown
to fill the week).
final
- inPreview → bool
-
Whether the preview of a range waiting for its end covers it: from the
waiting start (isRangeStart) to the preview's end (isPreviewEnd).
final
- inRange → bool
-
Whether a whole range covers it.
final
- isPreviewEnd → bool
-
Whether the preview of a range waiting for its end ends on it: the day
the pointer rests on, or the keyboard's day, when it is on or after
the start. A look draws it as it draws a finished range's end
(isRangeEnd), with no need to read the controller. On the start
itself, both isRangeStart and this are true.
final
- isRangeEnd → bool
-
Whether a range ends on it.
final
- isRangeStart → bool
-
Whether a range starts on it, a waiting one's too (a start chosen, no
end yet).
final
- isToday → bool
-
Whether it is today.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool
-
Whether it is chosen (a range's ends count).
final
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