MaxItemsOrNullableValidation<T> extension

on

Methods

maxItemsOrNull(int max, {String? message, String? code}) → SimpleValidationBuilder<List<T>?>

Available on SimpleValidationBuilder<List<T>?>, provided by the MaxItemsOrNullableValidation extension

Adds a validation rule that checks if the List? has at most max items or is null.