MultiDatePicker class

Inheritance

Constructors

MultiDatePicker.new({Key? key, required DateTime calendarStartDate, required DateTime calendarEndDate, DateTime? initialDate, DateTime? startDate, DateTime? endDate, dynamic onDateSelected(List<DateTime>)?, List<DateTime>? selectedDates, List<DateTime>? datesToExclude, CalendarStyleConfiguration? calendarStyleConfiguration, ScrollController? scrollController, bool enableListener = true, bool enableMultiSelect = false})

Properties

calendarEndDate DateTime
calendarEndDate determines the end date of the calendar.
final
calendarStartDate DateTime
calendarStartDate and calendarEndDate are the start and end dates of the calendar. The difference inDays between calendarEndDate and calendarStartDate should be greater than 0.
final
calendarStyleConfiguration CalendarStyleConfiguration?
calendarStyleConfiguration is the style configuration for the calendar.
final
datesToExclude List<DateTime>?
datesToExclude is a list of dates that will be refrained from selection. If datesToExclude is null, all dates between startDate and endDate will be available for selection.
final
enableListener bool
enableListener determines whether the whether you will get an event on every date selection. By default this will be true. If enableListener is false, onDateSelected will not be called on date selection. If this is set to false a confirm button will be shown to get the selected dates.
final
enableMultiSelect bool
enableMultiSelect determines whether the calendar will allow multi date selection or not. By default this will be false.
final
endDate DateTime?
endDate is the start date of calendar. Starting where the dates will be enabled. By default this will be equal to calendarEndDate.
final
hashCode int
The hash code for this object.
no setterinherited
initialDate DateTime?
initialDate is the date from where the calendar view will start.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onDateSelected → dynamic Function(List<DateTime>)?
onDateSelected is a callback that will be called on date selection. Note that this will be triggered for every date change if enableListener is true. If you want to change this behavior you can use enableListener to false. Then a confirm button will be shown to get the selected dates.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
scrollController is the scroll controller for the calendar. If this value is null, the calendar will create a scroll automatically to initialDate.
final
selectedDates List<DateTime>?
selectedDates is a list of dates that are already selected .
final
startDate DateTime?
startDate is the start date of calendar. Starting where the dates will be enabled. By default this will be equal to calendarStartDate.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<MultiDatePicker>
Creates the mutable state for this widget at a given location in the tree.
override
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, int wrapWidth = 65}) 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