DateBefore constructor

DateBefore(
  1. DateTime date, {
  2. String? message,
})

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);