ZdsDayPicker class
A widget that allow to select days.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ZdsDayPicker
- Available Extensions
Constructors
-
ZdsDayPicker({required DateTime startingWeekDate, List<
DateTime> ? initialSelectedDates, String? header, String? allText, List<int> disableDaysList = const <int>[], void onDaySelected(List<DateTime> )?, bool allowMultiSelect = false, bool showInCard = true, bool enabled = true, Key? key}) -
Constructs a ZdsDayPicker.
const
Properties
- allowMultiSelect → bool
-
Used to enable the selection of multiple days.
final
- allText → String?
-
Text for All button.
final
-
disableDaysList
→ List<
int> -
Disable days selection based on the days index, Sunday = 1, Monday = 2, ...
final
- enabled → bool
-
Used to enable / disable the component.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → String?
-
Text used for showing header at the beginning.
final
-
initialSelectedDates
→ List<
DateTime> ? -
The default selected dates.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onDaySelected
→ (void Function(List<
DateTime> )?) -
Method gets triggered on the click of a day.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showInCard → bool
-
Used to move the component inside/outside a card;
final
- startingWeekDate → DateTime
-
Starting date of the week.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ZdsDayPicker> -
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.
override
-
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