credit_card_x library

Classes

CardBackground
A utility class to define and generate background decorations for a credit card widget.
CardFlipController
A controller to manage the flipping state of a credit card widget.
CardTypeHelper
A helper class for working with CardType.
CreditCardX
A customizable credit/debit card widget with flip animation.

Enums

CardType
Supported credit/debit card types.

Functions

formatCurrency(double amount, {String symbol = '\$'}) → String
Formats a currency value as a string with a symbol and 2 decimal places.
formatExpiry(String expiry) → String
Formats an expiry date string into MM/YY.
maskCardNumber(String number, {bool mask = true}) → String
Utility functions for formatting credit card information and currency. Masks or formats a credit card number.