creditCard function
credit_card: the value must be a card number of 12-19 digits (ISO/IEC
7812) with a valid Luhn checksum, without card network detection. It is
checked as it is: spaces and dashes are not removed. The output is the
value as a string.
Implementation
LivrRule creditCard(List<Object?> args, RuleContext context) {
if (args.isNotEmpty) {
throw const LivrSchemaException('Rule [credit_card] takes no arguments');
}
return _creditCard;
}