FdcBooleanEdit class

Data-aware editor for boolean dataset fields.

The control reads the current field value and writes user changes through the dataset edit lifecycle.

Inheritance

Constructors

FdcBooleanEdit({Key? key, required FdcDataSet dataSet, required String fieldName, String? label, bool showLabel = true, bool? enabled, bool readOnly = false, int? focusOrder, bool tabStop = true, FdcBooleanControl control = FdcBooleanControl.checkbox, FdcEditorThemeData? theme, FdcEditorControlsStyle controlsStyle = const FdcEditorControlsStyle(), bool autofocus = false, FdcErrorIndicatorOptions errorIndicator = const FdcErrorIndicatorOptions(), FdcFieldFocusCallback<bool>? onEnter, FdcFieldFocusCallback<bool>? onExit, FdcFieldValueChangingCallback<bool>? onValueChanging, FdcFieldValueChangedCallback<bool>? onValueChanged})
Creates a FdcBooleanEdit.
const

Properties

autofocus bool
Whether this editor requests focus when first built.
final
control FdcBooleanControl
Visual boolean control rendered by the editor.
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
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
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String?
Optional label displayed for the editor.
final
onEnter FdcFieldFocusCallback<bool>?
Called when focus enters this bound field.
final
onExit FdcFieldFocusCallback<bool>?
Called when focus leaves this bound field.
final
onValueChanged FdcFieldValueChangedCallback<bool>?
Called after an accepted value change has been applied.
final
onValueChanging FdcFieldValueChangingCallback<bool>?
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
showLabel bool
Whether the editor renders its label.
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<FdcBooleanEdit>
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