CoolDatepicker class

Inheritance

Constructors

CoolDatepicker({int limitCount = 1, String format = 'yyyy-mm-dd', double iconSize = 25, double calendarSize = 400, List<DateTime>? disabledList, List<Map<String, DateTime?>>? disabledRangeList, int? minYear, int? maxYear, required Function onSelected, bool isRange = false, dynamic resultIcon, dynamic placeholderTS, bool isResultIconLabelReverse = false, String placeholder = '', double resultWidth = 220, double resultHeight = 50, Alignment resultAlign = Alignment.centerLeft, EdgeInsets resultPadding = const EdgeInsets.only(left: 10, right: 10), dynamic resultBD, dynamic resultTS, double labelIconGap = 10, dynamic defaultValue, List<String>? weekLabelList, List<String>? monthLabelList, bool isYearMonthDropdownReverse = false, Color bottomSelectedBorderColor = const Color(0XFF6771e4), Color headerColor = const Color(0XFF6771e4), Color arrowIconAreaColor = const Color(0XFF4752e0), Color selectedCircleColor = const Color(0XFF6771e4), Color selectedBetweenAreaColor = const Color(0XFFe2e4fa), Color cancelFontColor = const Color(0XFF4a54c5), LinearGradient okButtonColor = const LinearGradient(colors: [Color(0XFF4a54c5), Color(0XFF6771e4)]), bool isDark = false, String cancelBtnLabel = 'CANCEL', String okBtnLabel = 'OK', bool isResultLabel = true, int? firstWeekDay = DateTime.sunday})

Properties

arrowIconAreaColor Color
getter/setter pair
bottomSelectedBorderColor Color
getter/setter pair
calendarSize double
getter/setter pair
cancelBtnLabel String
getter/setter pair
cancelFontColor Color
getter/setter pair
defaultValue ↔ dynamic
getter/setter pair
disabledList List<DateTime>?
getter/setter pair
disabledRangeList List<Map<String, DateTime?>>?
getter/setter pair
firstWeekDay int?
getter/setter pair
format String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headerColor Color
getter/setter pair
iconSize double
getter/setter pair
isDark bool
getter/setter pair
isRange bool
getter/setter pair
isResultIconLabelReverse bool
getter/setter pair
isResultLabel bool
getter/setter pair
isYearMonthDropdownReverse bool
getter/setter pair
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelIconGap double
getter/setter pair
limitCount int
getter/setter pair
maxYear int?
getter/setter pair
minYear int?
getter/setter pair
monthLabelList List<String>?
getter/setter pair
monthLabelMapList List
getter/setter pair
okBtnLabel String
getter/setter pair
okButtonColor LinearGradient
getter/setter pair
onSelected Function
getter/setter pair
placeholder String
getter/setter pair
placeholderTS TextStyle
getter/setter pair
resultAlign Alignment
getter/setter pair
resultBD BoxDecoration
getter/setter pair
resultHeight double
getter/setter pair
resultPadding EdgeInsets
getter/setter pair
resultTS TextStyle
getter/setter pair
resultWidth double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedBetweenAreaColor Color
getter/setter pair
selectedCircleColor Color
getter/setter pair
weekLabelList List<String>?
getter/setter pair
weekLabelMapList List
getter/setter pair
years List<Map>
getter/setter pair

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _CoolDatepickerState
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
isSameBtwDates(DateTime target1, DateTime target2) bool
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