ZetaTimeInput class

A form field used to input time.

Can be used and validated the same way as a TextFormField

Inheritance
Available Extensions

Constructors

ZetaTimeInput({Key? key, bool disabled = false, TimeOfDay? initialValue, ValueChanged<TimeOfDay?>? onChange, ZetaFormFieldRequirement requirementLevel = ZetaFormFieldRequirement.none, bool rounded = true, bool? use12Hr, String? label, String? hintText, String? errorText, String? validator(TimeOfDay? value)?, ZetaWidgetSize size = ZetaWidgetSize.medium, TimePickerEntryMode? pickerInitialEntryMode})
Creates a new ZetaTimeInput
const

Properties

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 TimeOfDay?
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
onChange ValueChanged<TimeOfDay?>?
Called with the current value of the field whenever it is changed.
finalinherited
pickerInitialEntryMode TimePickerEntryMode?
The initial entry mode of the time 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
use12Hr bool?
Changes the time input to 12 hour time. Uses the device default if not set.
final
validator → (String? Function(TimeOfDay? 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<ZetaTimeInput>
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