CreditCard class

Constructors

CreditCard({required String number, required String name, required String expiryMonth, required String expiryYear, required String cvc})
CreditCard.fromJson(Map<String, dynamic> json)
factory

Properties

cvc → String
3-digit card verification code.
final
expiryMonth → String
2-digit expiry month.
final
expiryYear → String
4-digit expiry year.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
Name of the credit card owner.
final
number → String
16-digit credit card number.
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
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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