CreditCardType enum
Constructors
Values
- visa → const CreditCardType
-
Visa
const CreditCardType(brand: 'Visa', mask: '#### #### #### #### ###', lengths: [16, 18, 19], code: CreditCardCode('CVV', [3]), patterns: {Range(4)})
- mastercard → const CreditCardType
-
Mastercard
const CreditCardType(brand: 'Master', mask: '#### #### #### ####', lengths: [16], code: CreditCardCode('CVC', [3]), patterns: {Range(51, 55), Range(2221, 2229), Range(223, 229)…
- amex → const CreditCardType
-
American Express
const CreditCardType(brand: 'Amex', mask: '#### ###### #####', lengths: [15], code: CreditCardCode('CID', [4]), patterns: {Range(34), Range(37)}, extraBrands: ['americanexp…
- dinersclub → const CreditCardType
-
Diners Club
const CreditCardType(brand: 'Diners', mask: '#### ###### #########', lengths: [14, 16, 19], code: CreditCardCode('CVV', [3]), patterns: {Range(300, 305), Range(36), Range(38), …
- discover → const CreditCardType
-
Discover
const CreditCardType(brand: 'Discover', mask: '#### #### #### #### ###', lengths: [16, 19], code: CreditCardCode('CID', [3]), patterns: {Range(6011), Range(644, 649), Range(65)…
- jcb → const CreditCardType
-
JCB
const CreditCardType(brand: 'JCB', mask: '#### #### #### #### ###', lengths: [16, 17, 18, 19], code: CreditCardCode('CVV', [3]), patterns: {Range(2131), Range(1800), Range(3528…
- unionpay → const CreditCardType
-
UnionPay
const CreditCardType(brand: 'UnionPay', mask: '#### #### #### #### ###', lengths: [14, 15, 16, 17, 18, 19], code: CreditCardCode('CVN', [3]), patterns: {Range(620), Range(62100…
- maestro → const CreditCardType
-
Maestro
const CreditCardType(brand: 'Maestro', mask: '#### #### #### #### ###', lengths: [12, 13, 14, 15, 16, 17, 18, 19], code: CreditCardCode('CVC', [3]), patterns: {Range(493698), R…
- elo → const CreditCardType
-
Elo
const CreditCardType(brand: 'Elo', mask: '#### #### #### ####', lengths: [16], code: CreditCardCode('CVE', [3]), patterns: {Range(401178), Range(401179), Range(438935), Range(4…
- mir → const CreditCardType
-
Mir
const CreditCardType(brand: 'Mir', mask: '#### #### #### #### ###', lengths: [16, 17, 18, 19], code: CreditCardCode('CVP2', [3]), patterns: {Range(2200, 2204)})
- hiper → const CreditCardType
-
Hiper
const CreditCardType(brand: 'Hiper', mask: '#### #### #### ####', lengths: [16], code: CreditCardCode('CVC', [3]), patterns: {Range(637095), Range(63737423), Range(63743358), R…
- hipercard → const CreditCardType
-
Hipercard
const CreditCardType(brand: 'Hipercard', mask: '#### #### #### ####', lengths: [16], code: CreditCardCode('CVC', [3]), patterns: {Range(606282)})
- unknown → const CreditCardType
-
Unknown
const CreditCardType(brand: 'Unknown', mask: '#### #### #### #### ###', lengths: [12, 13, 14, 15, 16, 17, 18, 19], code: CreditCardCode('CVV', [3, 4]), patterns: {})
Properties
- brand → String
-
final
- checkLuhn → bool
-
final
- code → CreditCardCode
-
final
-
extraBrands
→ List<
String> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
-
lengths
→ List<
int> -
final
- mask → String
-
final
-
patterns
→ Set<
Range> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cvvCheck(
String cvv) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validLength(
String ccNum) → bool -
validNumber(
String ccNum) → bool
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
clearNum(
String ccNum) → String -
detectType(
String ccNum) → CreditCardType -
parse(
String? value) → CreditCardType
Constants
-
values
→ const List<
CreditCardType> - A constant List of the values in this enum, in order of their declaration.