CCard class

Constructors

CCard({String cardNumber = '', String cvv = '', int expirationMonth = 0, int expirationYear = 0, String email = ''})

Properties

cardNumber String
getter/setter pair
cvv String
getter/setter pair
email String
getter/setter pair
expirationMonth int
getter/setter pair
expirationYear int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBrand() int
getFormattedCardNumber(int spacing) String
isCardNumberValid() bool
isCcvValid() bool
isEmailValid() bool
isExpirationDateValid() bool
isMonthValid() bool
isYearValid() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

AMERICAN_EXPRESS → const int
ANY → const int
DINERS_CLUB → const int
MASTER_CARD → const int
VISA → const int