You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`FormBuilderValidators.creditCardCVC()` - requires the field's value to be a valid credit card CVC number.
638
-
-`FormBuilderValidators.creditCardExpirationDate()` - requires the field's value to be a valid credit card expiration date and can check if not expired yet.
639
-
-`FormBuilderValidators.creditCard()` - requires the field's value to be a valid credit card number.
636
+
-`FormBuilderValidators.creditCardCVC()`: there is no equivalent to [this validator](https://github.com/flutter-form-builder-ecosystem/form_builder_validators/blob/17e982bb849dc68365f8fbc93d5a2323ee891c89/lib/src/finance/credit_card_cvc_validator.dart#L29). Something close would be:
-`FormBuilderValidators.creditCardExpirationDate()`: there is no equivalent to [this validator](https://github.com/flutter-form-builder-ecosystem/form_builder_validators/blob/17e982bb849dc68365f8fbc93d5a2323ee891c89/lib/src/finance/credit_card_expiration_date_validator.dart#L52).
650
+
-`FormBuilderValidators.creditCard()`
651
+
```dart
652
+
// Old API:
653
+
FormBuilderValidators.creditCard(
654
+
errorText: 'invalid credit card',
655
+
);
656
+
657
+
// New API:
658
+
Validators.creditCard(
659
+
creditCardMsg: 'invalid credit card',
660
+
);
661
+
662
+
```
663
+
TODO continue from here!!!!
664
+
640
665
-`FormBuilderValidators.iban()` - requires the field's to be a valid IBAN.
0 commit comments