minSelected<T extends Iterable<G>, G> static method

ValidationRule<T> minSelected<T extends Iterable<G>, G>(
  1. int min, {
  2. String? message,
})

Creates a MinSelected validation rule.

This rule checks if the number of selected items in an iterable is greater than or equal to min. It can include a custom validation message.

Implementation

static ValidationRule<T> minSelected<T extends Iterable<G>, G>(int min,
        {String? message}) =>
    MinSelected<T, G>(min, message: message);