validators/list library

List Validators

This file contains validators that are list specific

Functions

listContains<T>(dynamic item, {String? message}) IValidator
Validates that the List contains item
listEmpty<T>({String? message}) IValidator
Validate that the list is empty
listIsOfLength(int size, {String? message}) IValidator
Validates that it's a list of size length
listLength<T>(List<IValidator> validators, {String? message}) IValidator
Validates that it's a List and the length matches the validators