RangeSelected<T> constructor

RangeSelected<T>(
  1. int min,
  2. int max, {
  3. String? message,
})

Creates a new instance of the RangeSelected validation rule.

  • min: The minimum required number of selected items (required).
  • max: The maximum allowed number of selected items (required).
  • message: A custom validation message (optional) to be displayed when the validation fails.

Implementation

RangeSelected(this.min, this.max, {String? message}) : super(message);