CreditCardWidget class

Inheritance

Constructors

CreditCardWidget({Key? key, String labelTextNum = 'Numero do cartão', String labelTextName = 'Nome no cartão', String labelTextExpData = 'MM/YY', String labelTextCVV = 'CVV/CVC', String labelTextCPF = 'CPF do Titular', String labelTextButton = 'Efetuar pagamento', String titleCreditCard = 'Cartão de Crédito', String labelTextValidate = 'Valido Até', String textRequired = 'Campo é obrigatorio', String textSelectBand = 'Selecione a bandeira', String textNameMin = 'O nome de conter pelo menos 6 caracteres', String textIntroNameValid = 'Insira um nome válido', String textCardExpired = 'Cartão vencido', String textInvalidateMonth = 'Mês incorreto.', Color colorButton = const Color(0xFFfec177), Color colorTextButton = Colors.white, Color colorTextField = Colors.grey, Color colorCardSelect = const Color(0xFFfec177), Color colorCreditWhite = const Color(0xff535252), Color colorCreditBlack = const Color(0xff211e1e), double textSizeNumber = 0.06, double textSizeName = 0.045, double textSizeMonth = 0.03, double textSizeCVC = 0.03, List<String> listBand = const ['visa', 'mastercard', 'amex', 'elo', 'dinersclub', 'discover', 'jcb', 'aura', 'hiper', 'hipercard', 'rupay'], bool viewLayout = false, bool cpfVisibility = true, required dynamic onTap()})
const

Properties

colorButton Color
final
colorCardSelect Color
final
colorCreditBlack Color
final
colorCreditWhite Color
final
colorTextButton Color
final
colorTextField Color
final
cpfVisibility bool
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelTextButton String
final
labelTextCPF String
final
labelTextCVV String
final
labelTextExpData String
final
labelTextName String
final
labelTextNum String
final
labelTextValidate String
final
listBand List<String>
final
onTap → dynamic Function()
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textCardExpired String
final
textIntroNameValid String
final
textInvalidateMonth String
final
textNameMin String
final
textRequired String
final
textSelectBand String
final
textSizeCVC double
final
textSizeMonth double
final
textSizeName double
final
textSizeNumber double
final
titleCreditCard String
final
viewLayout bool
final

Methods

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