File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -320,12 +320,15 @@ All supported systems are available as string constants in
320320
321321``` dart
322322class CardSystem {
323+ static const String MIR = 'MIR';
324+ static const String UNION_PAY = 'UnionPay';
323325 static const String VISA = 'Visa';
324326 static const String MASTERCARD = 'Mastercard';
325327 static const String JCB = 'JCB';
326328 static const String DISCOVER = 'Discover';
327329 static const String MAESTRO = 'Maestro';
328- static const String AMERICAN_EXPRESS= 'Amex';
330+ static const String AMERICAN_EXPRESS = 'Amex';
331+ static const String DINERS_CLUB = 'DinersClub';
329332}
330333```
331334Anyway, if the number is not supported it will just be returned as it is and your input will not
Original file line number Diff line number Diff line change @@ -32,15 +32,15 @@ import 'package:flutter/widgets.dart';
3232import 'formatter_utils.dart' ;
3333
3434class CardSystem {
35+ static const String MIR = 'MIR' ;
36+ static const String UNION_PAY = 'UnionPay' ;
3537 static const String VISA = 'Visa' ;
3638 static const String MASTERCARD = 'Mastercard' ;
3739 static const String JCB = 'JCB' ;
3840 static const String DISCOVER = 'Discover' ;
3941 static const String MAESTRO = 'Maestro' ;
4042 static const String AMERICAN_EXPRESS = 'Amex' ;
41- static const String UNION_PAY = 'UnionPay' ;
4243 static const String DINERS_CLUB = 'DinersClub' ;
43- static const String MIR = 'MIR' ;
4444}
4545
4646class CreditCardNumberInputFormatter extends TextInputFormatter {
You can’t perform that action at this time.
0 commit comments