MaxSelected<T extends Iterable<G>, G> constructor

MaxSelected<T extends Iterable<G>, G>(
  1. int max, {
  2. String? message,
})

Creates a new instance of the MaxSelected validation rule.

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

Implementation

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