CardInfo class
Constructors
Properties
- cardNumber → String
-
final
- cvv → String
-
final
- expiryMonth → String
-
final
- expiryYear → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- holder → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, String> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
convertYearTo4Digits(
int year) → int - Convert the two-digit year to four-digit year if necessary
-
hasDateExpired(
int month, int year) → bool -
hasMonthPassed(
int year, int month) → bool -
hasYearPassed(
int year) → bool -
isNotExpired(
int year, int month) → bool -
validateCVV(
String value) → String? -
validateDate(
String value) → String?