iban function
iban: the value must be an IBAN (ISO 13616): 2 letters A-Z, 2 digits
and 11-30 letters A-Z or digits, with a valid checksum (mod 97). It is
checked as it is: spaces are not removed and lowercase letters fail. No
per-country lengths. The output is the value as a string.
Implementation
LivrRule iban(List<Object?> args, RuleContext context) {
if (args.isNotEmpty) {
throw const LivrSchemaException('Rule [iban] takes no arguments');
}
return _iban;
}