FdcIntegerEdit class
Data-aware editor for integer dataset fields.
The editor parses integer input, applies field normalization and validation, and can invoke an optional lookup callback before committing through the dataset edit lifecycle.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- FdcIntegerEdit
Constructors
-
FdcIntegerEdit({Key? key, required FdcDataSet dataSet, required String fieldName, String? label, String? hint, bool? enabled, bool readOnly = false, int? focusOrder, bool tabStop = true, bool allowNegative = true, InputDecoration? decoration, FdcEditorThemeData? theme, FdcEditorInputStyle style = const FdcEditorInputStyle(), bool autofocus = false, bool showLabel = true, bool selectAllOnFocus = false, FdcErrorIndicatorOptions errorIndicator = const FdcErrorIndicatorOptions(), FdcEditorLookup<
int> ? onLookup, IconData lookupIcon = Icons.more_horiz, FdcKeyboardShortcut? lookupShortcut = FdcKeyboardShortcut.f4, FdcFieldFocusCallback<int> ? onEnter, FdcFieldFocusCallback<int> ? onExit, FdcFieldValueChangingCallback<int> ? onValueChanging, FdcFieldValueChangedCallback<int> ? onValueChanged}) -
Creates a FdcIntegerEdit.
const
Properties
- allowNegative → bool
-
Whether the input accepts negative numeric values.
final
- 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;
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
- lookupIcon → IconData
-
Icon displayed by the lookup affordance.
final
- lookupShortcut → FdcKeyboardShortcut?
-
Keyboard shortcut that invokes onLookup, or
nullto disable it.final -
onEnter
→ FdcFieldFocusCallback<
int> ? -
Called when focus enters this bound field.
final
-
onExit
→ FdcFieldFocusCallback<
int> ? -
Called when focus leaves this bound field.
final
-
onLookup
→ FdcEditorLookup<
int> ? -
Optional asynchronous lookup invoked by the lookup button or shortcut.
final
-
onValueChanged
→ FdcFieldValueChangedCallback<
int> ? -
Called after an accepted value change has been applied.
final
-
onValueChanging
→ FdcFieldValueChangingCallback<
int> ? -
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
- 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