CreditForm class

Inheritance

Constructors

CreditForm({@required dynamic onChangedCard(CreditCardInfo cardInfo), @required dynamic dropCardOnCancel(CreditCardInfo cardInfo), Future validateCode(String code), int codeLength = 12, String language = "es", bool edit = false, Color backgroundColor = _mainWhite, Color mainColor = _yellowOrange, Color secondaryColor = Colors.black38, Color textColor = _mainBlack, Color buttonTextColor = _mainBlack, Map<String, String> confirmButtonText, List<Color> extraColors})

Properties

backgroundColor Color
Color of the background
final
buttonTextColor Color
Color of the text of the confirm button
final
codeLength int
Permitted length of code
final
confirmButtonText Map<String, String>
Text of the confirm button (default to Confirm (en) or Confirmar (es))
final
dropCardOnCancel → dynamic Function(CreditCardInfo cardInfo)
Function to do if Cancel button is pressed
final
edit bool
Flag to set if card can be edited in future (default false)
final
extraColors List<Color>
Extra colors to add in the palette
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
language String
Lenguage in which this widget will appear (en: English, es: Spanish)
final
mainColor Color
Color of button and Loading widget
final
onChangedCard → dynamic Function(CreditCardInfo cardInfo)
Function that will return new data incoming from card form when Confirm button is returned
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secondaryColor Color
Color of textForm hide texts
final
textColor Color
Color of the input texts
final
validateCode Future Function(String code)
Function to call if a prepay card requires a revision of code
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() → _CreditFormState
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. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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. [...]
@nonVirtual, inherited