ZetaDateInput class

A form field used to input dates.

Can be used and validated the same way as a TextFormField

Inheritance
Available Extensions

Constructors

ZetaDateInput({Key? key, bool disabled = false, DateTime? initialValue, ValueChanged<DateTime?>? onChange, ZetaFormFieldRequirement requirementLevel = ZetaFormFieldRequirement.none, bool rounded = true, String? label, String? hintText, String? errorText, String? validator(DateTime? value)?, ZetaWidgetSize size = ZetaWidgetSize.medium, String dateFormat = 'MM/dd/yyyy', DateTime? minDate, DateTime? maxDate, DatePickerEntryMode? pickerInitialEntryMode})
Creates a new ZetaDateInput

Properties

dateFormat String
The format the given date should be in https://pub.dev/documentation/intl/latest/intl/DateFormat-class.html
final
disabled bool
finalinherited
errorText String?
The error displayed below the input.
final
hashCode int
The hash code for this object.
no setterinherited
hintText String?
The hint displayed below the input.
final
initialValue DateTime?
The initial value of the form field.
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String?
The label for the input.
final
maxDate DateTime?
The maximum date allowed by the date input.
final
minDate DateTime?
The minimum date allowed by the date input.
final
onChange ValueChanged<DateTime?>?
Called with the current value of the field whenever it is changed.
finalinherited
pickerInitialEntryMode DatePickerEntryMode?
The initial entry mode of the date picker.
final
requirementLevel ZetaFormFieldRequirement
The requirement level of the form field, e.g. mandatory or optional.
finalinherited
rounded bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size ZetaWidgetSize
The size of the input.
final
validator → (String? Function(DateTime? value)?)
The validator passed to the text input. Returns a string containing an error message.
final

Methods

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