CreditCardUi class

Creates Credit Card UI.

Inheritance

Constructors

CreditCardUi({required String cardHolderFullName, required String cardNumber, required String validThru, String? validFrom, Color topLeftColor = Colors.purple, Color? bottomRightColor, bool doesSupportNfc = true, @Deprecated('[scale] is deprecated, use [width] instead, will be removed soon') double scale = 1.0, double? width, bool placeNfcIconAtTheEnd = false, CardType cardType = CardType.credit, CreditCardType? creditCardType, CardProviderLogoPosition cardProviderLogoPosition = CardProviderLogoPosition.right, DecorationImage? backgroundDecorationImage, bool showValidFrom = true, bool showValidThru = true, Key? key, String? currencySymbol = r'$', double? balance = 0.0, bool? showBalance = false, bool? autoHideBalance = false, bool? enableFlipping = false, String? cvvNumber = '***', bool? disableHapticFeedBack = false})
Creates Credit Card UI.
const

Properties

autoHideBalance bool?
A boolean flag indicating to enable the auto hiding balance feature.
final
backgroundDecorationImage DecorationImage?
Set Background image, can support both asset and network image.
final
balance double?
The balance amount.
final
bottomRightColor Color?
Bottom Left Color for the Gradient, by default it's deeper version of topLeftColor.
final
cardHolderFullName String
Full Name of the Card Holder.
final
cardNumber String
Full credit card number, can support asterisks.
final
Provide the logo of the card provider (Optional).
final
cardProviderLogoPosition CardProviderLogoPosition
Set the position of the card provider, by default, it is on the right.
final
cardType CardType
Provide the type of the card - credit or debit. By default, it's CardType.credit
final
creditCardType CreditCardType?
Set Credit card type to set network provider logo - VISA, Mastercard, etc.
final
currencySymbol String?
The symbol used to represent the currency. By default, it uses US Dollar sign ($)
final
cvvNumber String?
CVV number of the card, use *** if you think this is sensitive, by default it will show ***
final
disableHapticFeedBack bool?
A boolean flag to disable the haptic feedback. Example — card flipping or tapping on placeholder to see balance
final
doesSupportNfc bool
Shows a NFC icon to tell user if the card supports NFC feature.
final
enableFlipping bool?
A boolean flag indicating whether card flipping is enabled.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
placeNfcIconAtTheEnd bool
Places NFC icon at the opposite side of the chip,
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
Can scale the credit card.
final
showBalance bool?
A boolean flag indicating whether to show the balance.
final
showValidFrom bool
Determines whether to show the "Valid From" segment on the card.
final
showValidThru bool
Determines whether to show the "Valid Thru" segment on the card.
final
topLeftColor Color
Top Left Color for the Gradient, by default it's Colors.purple.
final
validFrom String?
Enter valid from date of the card month and year like mm/yy,
final
validThru String
Enter validity of the card month and year like mm/yy.
final
width double?
Defines Card max width.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
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
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