CalendarBody class
Represents the whole TableView of the calendar.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CalendarBody
Constructors
-
CalendarBody({required CalendarMonth calendarMonth, required DayBuilder dayBuilder, required DayOfWeekBuilder dayOfWeekBuilder, required ValueChanged<
DateTime> onSelectDay, required Map<DayOfWeek, String> daysOfWeek, required bool disableTapOnOutOfRange, required DateTime? selectedDate, required DateTime? minSelectableDate, required DateTime? maxSelectableDate, Key? key}) -
const
Properties
- calendarMonth → CalendarMonth
-
The CalendarMonth that is shown inside the table.
final
- dayBuilder → DayBuilder
-
Custom Builder for a day cell.
final
- dayOfWeekBuilder → DayOfWeekBuilder
-
Custom Builder for the DayOfWeek cell.
final
-
daysOfWeek
→ Map<
DayOfWeek, String> -
Uses a Map of <DayOfWeek, String> to fill DayOfWeekCalendarCells
final
- disableTapOnOutOfRange → bool
-
If true the days outside of the Range can´t be tapped.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxSelectableDate → DateTime?
-
All days after chosen maxSelectableDate are flagged as outOfRange.
final
- minSelectableDate → DateTime?
-
All days before chosen minSelectableDate are flagged as outOfRange.
final
-
onSelectDay
→ ValueChanged<
DateTime> -
Callback when value of currentDate hase been changed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedDate → DateTime?
-
The date which is selected at the moment.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited