MaxValue constructor
Creates a new instance of the MaxValue validation rule.
max
: The maximum allowed numeric value (required).message
: A custom validation message (optional) to be displayed when the validation fails.
Implementation
MaxValue(this.max, {String? message}) : super(message);