maxValue static method

ValidationRule<num> maxValue(
  1. int max, {
  2. String? message,
})

Creates a MaxValue validation rule.

This rule checks if a numeric value is less than or equal to max. It can include a custom validation message.

Implementation

static ValidationRule<num> maxValue(int max, {String? message}) =>
    MaxValue(max, message: message);