FormButton class

This class represents a form button.

Constructors

FormButton({required String label, required dynamic onTap(BuildContext context), FormButtonStyle? formButtonStyle, String? labelOnSubmitting})

Properties

formButtonStyle FormButtonStyle?
The button style
final
hashCode int
The hash code for this object.
no setterinherited
isSubmitting bool
To know If the form is submitting
getter/setter pair
label String
The button label
final
labelOnSubmitting String?
The button label when submitting
getter/setter pair
listeners List<dynamic Function(BuildContext context)>
The tap listeners (useful to trigger another actions)
getter/setter pair
onTap → dynamic Function(BuildContext context)
The callback function when tap the button
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

doSubmit(BuildContext context) → void
doSubmit to call onTap and alert listeners
draw(BuildContext context, {bool isSubmitting = false}) Widget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited