integer static method
Creates an Integer validation rule.
This rule checks if a string can be parsed as an integer. It can include a custom validation message.
Implementation
static ValidationRule<String> integer({String? message}) =>
Integer(message: message);