IncrementDecrementFormField<T> class

Inheritance

Constructors

IncrementDecrementFormField({Key? key, required Widget displayBuilder(T? value, FormFieldState<T>), T? initialValue, IconButtonConfig incrementIconButtonConfig = const IconButtonConfig(icon: Icon(Icons.add)), IconButtonConfig decrementIconButtonConfig = const IconButtonConfig(icon: Icon(Icons.remove)), required T? onIncrement(T? currentValue), required T? onDecrement(T? currentValue), BoxDecoration errorDecoration = const BoxDecoration(border: Border(left: BorderSide(color: Colors.red), top: BorderSide(color: Colors.red), right: BorderSide(color: Colors.red), bottom: BorderSide(color: Colors.red))), String? validator(T? value)?, void onSaved(T? value)?, bool enabled = true, AutovalidateMode? autovalidateMode, String? restorationId, Key? formFieldKey, ColumnConfig columnConfig = const ColumnConfig(mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start), ContainerConfig containerConfig = const ContainerConfig(), RowConfig rowConfig = const RowConfig(), ErrorTextConfig errorTextConfig = const ErrorTextConfig(style: TextStyle(color: Colors.red)), ErrorFlexibleConfig errorFlexibleConfig = const ErrorFlexibleConfig()})
const

Properties

autovalidateMode AutovalidateMode?
final
columnConfig ColumnConfig
final
containerConfig ContainerConfig
final
decrementIconButtonConfig IconButtonConfig
final
displayBuilder Widget Function(T? value, FormFieldState<T>)
display the value in the centre widget
final
enabled bool
final
errorDecoration BoxDecoration
the box decoration surrounding the widget when the validation function returns a value other than null. The decoration for the Container
final
errorFlexibleConfig ErrorFlexibleConfig
final
errorTextConfig ErrorTextConfig
final
formFieldKey Key?
final
hashCode int
The hash code for this object.
no setterinherited
incrementIconButtonConfig IconButtonConfig
final
initialValue → T?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onDecrement → T? Function(T? currentValue)
run your custom code to decrement the displayed value. return the new desired value.
final
onIncrement → T? Function(T? currentValue)
run your custom code to increment the displayed value. return the new desired value.
final
onSaved → (void Function(T? value)?)
final
restorationId String?
final
rowConfig RowConfig
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validator → (String? Function(T? value)?)
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
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}) 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