CalendarWidgetController class

A controller that handles the logic of the calendar widget.

Constructors

CalendarWidgetController({required RangePickerController controller, required DateTime currentMonth})

Properties

controller RangePickerController
The controller that handles the logic of the date range picker.
final
currentMonth DateTime
The current month that is displayed.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
nextMonth DateTime
The next month that can be displayed (two months can be displayed at the same time).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateStream Stream<void>
no setter

Methods

next() → void
Goes to the next month.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDateChanged(DateTime date) → void
previous() → void
Goes to the previous month.
retrieveDatesForMonth() List<DayModel>
Returns the dates for the current month.
retrieveDatesForNextMonth() List<DayModel>
Returns the dates for the next month.
retrieveDeltaForMonth() int
Returns the number of days to skip at the beginning of the current month.
retrieveDeltaForNextMonth() int
Returns the number of days to skip at the beginning of the next month.
setDateRange(DateRange? dateRange) → void
toString() String
A string representation of this object.
inherited

Operators

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