FdcDateTimeEdit class

Data-aware editor for full date-and-time dataset fields.

The control combines locale-aware text entry, optional picker access, validation, and dataset edit lifecycle integration.

Inheritance

Constructors

FdcDateTimeEdit({Key? key, required FdcDataSet dataSet, required String fieldName, String? label, String? hint, bool? enabled, bool readOnly = false, int? focusOrder, bool tabStop = true, bool showPicker = true, InputDecoration? decoration, FdcEditorThemeData? theme, FdcEditorInputStyle style = const FdcEditorInputStyle(), bool autofocus = false, bool showLabel = true, bool selectAllOnFocus = false, FdcErrorIndicatorOptions errorIndicator = const FdcErrorIndicatorOptions(), FdcFieldFocusCallback<DateTime>? onEnter, FdcFieldFocusCallback<DateTime>? onExit, FdcFieldValueChangingCallback<DateTime>? onValueChanging, FdcFieldValueChangedCallback<DateTime>? onValueChanged, FdcFormatSettings? formatSettings})
Creates a FdcDateTimeEdit.
const

Properties

autofocus → bool
Whether this editor requests focus when first built.
final
dataSet → FdcDataSet
Dataset whose current record and edit buffer are bound to this editor.
final
decoration → InputDecoration?
Optional Flutter input decoration override.
final
enabled → bool?
Optional enabled-state override; null leaves enablement to the binding.
final
errorIndicator → FdcErrorIndicatorOptions
Configures how validation errors are presented by this editor.
final
fieldName → String
Name of the dataset field bound to this editor.
final
focusOrder → int?
Optional numeric order used by FDC focus traversal.
final
formatSettings → FdcFormatSettings?
Optional parsing and display format override for this editor.
final
hashCode → int
The hash code for this object.
no setterinherited
hint → String?
Optional hint shown when the editor has no input text.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
Optional label displayed for the editor.
final
onEnter → FdcFieldFocusCallback<DateTime>?
Called when focus enters this bound field.
final
onExit → FdcFieldFocusCallback<DateTime>?
Called when focus leaves this bound field.
final
onValueChanged → FdcFieldValueChangedCallback<DateTime>?
Called after an accepted value change has been applied.
final
onValueChanging → FdcFieldValueChangingCallback<DateTime>?
Called before a proposed value change is committed.
final
readOnly → bool
Whether user input is blocked even when the bound field is writable.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectAllOnFocus → bool
Whether entering the editor selects all current text.
final
showLabel → bool
Whether the editor renders its label.
final
showPicker → bool
Whether to show the picker affordance for selecting a value.
final
style → FdcEditorInputStyle
Local text-input style merged over the resolved editor theme.
final
tabStop → bool
Whether the editor participates in keyboard focus traversal.
final
theme → FdcEditorThemeData?
Optional local editor theme override for this control.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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
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, int wrapWidth = 65}) → 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