maxValue static method
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);