FdcComboEdit<T> class
Data-aware selection editor backed by a predefined set of options.
The control maps display labels to field values and participates in the dataset edit lifecycle.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FdcComboEdit
Constructors
-
FdcComboEdit({Key? key, required FdcDataSet dataSet, required String fieldName, required List<
FdcOption< options, String? label, String? hint, bool? enabled, bool readOnly = false, int? focusOrder, bool tabStop = true, InputDecoration? decoration, FdcEditorThemeData? theme, FdcEditorInputStyle style = const FdcEditorInputStyle(), FdcEditorControlsStyle controlsStyle = const FdcEditorControlsStyle(), FdcEditorComboPopupStyle popupStyle = const FdcEditorComboPopupStyle(), bool autofocus = false, bool showLabel = true, bool showSelectedOptionCheckmark = true, FdcComboSearchOptions search = const FdcComboSearchOptions(), String? searchHintText, int maxPopupItems = 8, FdcErrorIndicatorOptions errorIndicator = const FdcErrorIndicatorOptions(), FdcFieldFocusCallback<T> >T> ? onEnter, FdcFieldFocusCallback<T> ? onExit, FdcFieldValueChangingCallback<T> ? onValueChanging, FdcFieldValueChangedCallback<T> ? onValueChanged}) -
Creates a FdcComboEdit.
const
Properties
- autofocus → bool
-
Whether this editor requests focus when first built.
final
- controlsStyle → FdcEditorControlsStyle
-
Local control-chrome style merged over the resolved editor theme.
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;
nullleaves 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
- 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
- maxPopupItems → int
-
Maximum number of option rows visible before the popup scrolls.
final
-
onEnter
→ FdcFieldFocusCallback<
T> ? -
Called when focus enters this bound field.
final
-
onExit
→ FdcFieldFocusCallback<
T> ? -
Called when focus leaves this bound field.
final
-
onValueChanged
→ FdcFieldValueChangedCallback<
T> ? -
Called after an accepted value change has been applied.
final
-
onValueChanging
→ FdcFieldValueChangingCallback<
T> ? -
Called before a proposed value change is committed.
final
-
options
→ List<
FdcOption< T> > -
Available value/label pairs presented by the combo popup.
final
- popupStyle → FdcEditorComboPopupStyle
-
Local combo-popup style merged over the resolved editor theme.
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
- search → FdcComboSearchOptions
-
Search behavior used by the combo popup.
final
- searchHintText → String?
-
Optional hint displayed in the combo popup search field.
final
- showLabel → bool
-
Whether the editor renders its label.
final
- showSelectedOptionCheckmark → bool
-
Whether the popup marks the currently selected option.
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
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< FdcComboEdit< T> > -
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.
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