EasyFormResetButton class

The button builder that, when pressed, clears the data of the form fields, returning them to their initial values.

The widget has two constructors, the standard EasyFormResetButton, in which you can specify any widget in the child argument as the button content, and the EasyFormResetButton.text constructor, in which you can specify the text on the button.

See also:

Inheritance

Constructors

EasyFormResetButton({Key? key, required Widget child, EasyFormActionButtonBuilder? builder, EdgeInsetsGeometry padding = EasyFormActionButton.kPadding, Alignment alignment = Alignment.center, bool enabled = true})
Creates a widget that creates a form reset button.
const
EasyFormResetButton.text(String text, {EasyFormActionButtonBuilder? builder, EdgeInsetsGeometry padding = EasyFormActionButton.kPadding, Alignment alignment = Alignment.center, bool enabled = true})
Creates a widget that creates a form reset button with text as a child.
factory

Properties

action → EasyFormButtonAction?
The action when the button is pressed.
finalinherited
alignment Alignment
Aligning content inside a button.
finalinherited
child Widget
Typically the button's label.
finalinherited
enabled bool
Whether the button is enabled or disabled. Button are enabled by default.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lockOnSaving bool
Whether to lock button press on form save.
finalinherited
padding EdgeInsetsGeometry
Padding inside a button.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bodyBuilder(BuildContext context, Widget child, bool isSaving, EasyFormState form) Widget
inherited
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
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
getBuilder(BuildContext context) → EasyFormActionButtonBuilder?
Returns the button builder.
inherited
getDefaultBuilder(BuildContext context) → EasyFormActionButtonBuilder
Returns the button default builder.
handleAction(BuildContext context, EasyFormState form) → void
Calls an action when a button is pressed.
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

Static Properties

defaultBuilder ↔ EasyFormActionButtonBuilder
The default button builder, creates an OutlinedButton or CupertinoButton.
getter/setter pair