ListValidatorExtensions<T> extension

on

Methods

arrayOf<T>(EzValidator<T> itemValidator) EzValidator<List<T>>
Define an array of itemValidator to validate each item in the array
listOf(Type type, [String? message]) EzValidator<T>
Checks if the value is a list of type message is the message to return if the validation fails
notOneOf(List<T> items, [String? message]) EzValidator<T>
Checks if the value is not one of items message is the message to return if the validation fails
oneOf(List<T> items, [String? message]) EzValidator<T>
Checks if the value is one of items message is the message to return if the validation fails