DateBefore constructor
Creates a new instance of the DateBefore validation rule.
- date: The date to compare against (required).
message
: A custom validation message (optional) to be displayed when the validation fails.
Implementation
DateBefore(this.date, {String? message}) : super(message);