iban static method
FormFieldValidator that requires the field's value to be a valid IBAN.
Parameters:
regex
The regex pattern to match.errorText
The error message when the IBAN is invalid.checkNullOrEmpty
Whether to check for null or empty values.
This regex matches IBAN (International Bank Account Number).
- It consists of two letters (country code), two digits (check digits), and up to 30 alphanumeric characters (account number).
Examples: DE89370400440532013000, FR1420041010050500013M02606
Implementation
static FormFieldValidator<String> iban({
RegExp? regex,
String? errorText,
bool checkNullOrEmpty = true,
}) => IbanValidator(
regex: regex,
errorText: errorText,
checkNullOrEmpty: checkNullOrEmpty,
).validate;