FormDatetimeItem class
This class represents a Date time form item.
Constructors
-
FormDatetimeItem({FormItemStyle? formItemStyle, required String label, bool withTime = false, bool onlyTime = false, String dateFormat = "MM/dd/yyyy", String timeFormat = "HH:mm", List<
FormValidator> ? validators, dynamic value})
Properties
- dateFormat → String
-
final
- focusNode → FocusNode
-
finalinherited
- formItemStyle ↔ FormItemStyle?
-
The item style
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → dynamic
-
The item initial value
finalinherited
- label → String
-
The item label
finalinherited
-
onChangeListeners
↔ List<
dynamic Function(dynamic)> -
The collection of listeners to listen changes of the item value
getter/setter pairinherited
-
onChangeVisibilityListeners
↔ List<
dynamic Function(dynamic)> -
The collection of listeners to listen changes of the item visibility
getter/setter pairinherited
-
onError
↔ dynamic Function(List<
String> msg)? -
A callback function to send errors.
getter/setter pairinherited
- onlyTime → bool
-
final
-
onRecordAudio
↔ Future<
String?> Function(BuildContext context)? -
A callback function to record audio and return the text
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeFormat → String
-
final
-
validators
↔ List<
FormValidator> ? -
Validators to apply to this item.
getter/setter pairinherited
- value ↔ dynamic
-
The item current value
getter/setter pairinherited
- valueFormat ↔ FormValueFormat?
-
getter/setter pairinherited
- withTime → bool
-
final
Methods
-
addOnChangeListener(
dynamic onChange(dynamic)) → dynamic -
Adds a listener of changes
inherited
-
addOnChangeVisibilityListener(
dynamic onChange(dynamic)) → dynamic -
Adds a listener of visibility changes
inherited
-
areEquals(
dynamic value, dynamic anotherValue) → bool -
Compares 2 values
inherited
-
draw(
BuildContext context) → Widget -
Draws the item
override
-
focus(
BuildContext context) → void -
inherited
-
formatValue(
{dynamic anotherValue}) → String -
Format the value to string
override
-
getErrorMessages(
) → List< String> -
Gets the error messages tied to the last validation
inherited
-
getValue(
) → DateTime? -
Gets current value
override
-
isEmpty(
) → bool -
Returns if the current value is empty or not.
override
-
isEqual(
dynamic value) → bool -
Compares with other value
inherited
-
isVisible(
) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseValue(
dynamic value) → dynamic -
Parses the value
override
-
scale(
{double scaleFactor = 1}) → void -
inherited
-
setValue(
dynamic value) → dynamic -
Sets current value
inherited
-
setVisible(
bool visible) → dynamic -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
{String msg = "Required"}) → bool -
Validates the current value
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited