CustomDateRangePicker class

A custom date range picker widget that allows users to select a date range. const CustomDateRangePicker({ Key? key, this.initialStartDate, this.initialEndDate, required this.primaryColor, required this.backgroundColor, required this.onApplyClick, this.barrierDismissible = true, required this.minimumDate, required this.maximumDate, required this.onCancelClick, })

Inheritance

Constructors

CustomDateRangePicker({Key? key, DateTime? initialStartDate, DateTime? initialEndDate, Color? primaryColor, Color? backgroundColor, dynamic onApplyClick(DateTime, DateTime)?, bool? barrierDismissible = true, DateTime? minimumDate, DateTime? maximumDate, dynamic onCancelClick()?, bool showSelected = true})
const

Properties

backgroundColor Color?
The background color used for the date range picker.
final
barrierDismissible bool?
Whether the widget can be dismissed by tapping outside of it.
final
hashCode int
The hash code for this object.
no setterinherited
initialEndDate DateTime?
The initial end date for the date range picker. If not provided, the calendar will default to the maximum date.
final
initialStartDate DateTime?
The initial start date for the date range picker. If not provided, the calendar will default to the minimum date.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maximumDate DateTime?
The maximum date that can be selected in the calendar.
final
minimumDate DateTime?
The minimum date that can be selected in the calendar.
final
onApplyClick → dynamic Function(DateTime, DateTime)?
A callback function that is called when the user applies the selected date range.
final
onCancelClick → dynamic Function()?
A callback function that is called when the user cancels the selection of the date range.
final
primaryColor Color?
The primary color used for the date range picker.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showSelected bool
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() CustomDateRangePickerState
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