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