PaymentForm class

PaymentForm : Widget Form that illustrate payment form

entryModeDateExpiration : (DateExpirationEntryMode) input type of card date expiration can be dropdown or input(textField)

decorationElement : decoration of all input field in form

errorMessageDateExpiration : messages errors to show when Date Expiration field not validate

errorMessageCVV : messages errors to show when cvv field is invalidate

errorMessageCardNumber : messages errors to show when credit card number is invalidate

errorIsRequiredMessage : messages errors to show when at least one field not filled

labelCardNumber : text label of credit card number field

labelDateExpiration : text label of date expiration field

labelCVV : text label of cvv field

controller : Controls the form and validate it,setError to fields,clear values.

submitButton : (Widget) submit widget that you want integrated directly in form

Inheritance

Constructors

PaymentForm({required PaymentController controller, DateExpirationEntryMode entryModeDateExpiration = DateExpirationEntryMode.input, DecorationElement? decorationElement, String errorMessageDateExpiration = "this field is invalid", String labelCardNumber = "XXXX XXXX XXXX XXXX", String? labelDateExpiration, String labelCVV = "cvv", String? errorMessageCVV, String? errorMessageCardNumber, int? maxYearDateExpiration, String errorIsRequiredMessage = "this field is required", Widget? submitButton, Key? key})

Properties

controller PaymentController
final
decorationElement DecorationElement?
final
entryModeDateExpiration DateExpirationEntryMode
final
errorIsRequiredMessage String
final
errorMessageCardNumber String?
final
errorMessageCVV String?
final
errorMessageDateExpiration String
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelCardNumber String
final
labelCVV String
final
labelDateExpiration String?
final
maxYearDateExpiration int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
submitButton Widget?
final

Methods

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

Static Methods

of(BuildContext context, {bool nullOk = false}) PaymentController?