integer static method

ValidationRule<String> integer({
  1. String? message,
})

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);