digits function
digits: the value must be one or more ASCII digits 0-9. Leading zeros
are kept, and the output is a string: '007' stays '007', 7 becomes
'7'.
Implementation
LivrRule digits(List<Object?> args, RuleContext context) {
if (args.isNotEmpty) {
throw const LivrSchemaException('Rule [digits] takes no arguments');
}
return _digits;
}