notEmpty<T, E> static method
Validates that the collection is not empty.
CollectionRules.notEmpty(error: 'Cannot be empty')
Implementation
static Rule<Iterable<T>, E> notEmpty<T, E>({required E error}) =>
PredicateRule(
predicate: (value) => value.isNotEmpty,
error: error,
);