validators/comparison library
Comparison Validators
This file contains validators for comparing values
Functions
-
contains<
T> (T item, {String? message}) → IValidator -
Checks whether the given value contains the
item
value of typeT
-
isDeepEq<
T> (T otherValue, {String? message}) → IValidator -
Checks whether the given value is equal to the
otherValue
value of typeT
-
isEq<
T> (T otherValue, {String? message}) → IValidator -
Checks whether the given value is equal to the
otherValue
value of typeT
-
isOneOf<
T> (Iterable< T> options, {String? message}) → IValidator -
Checks whether the given value is one of the
options
values of typeT
-
length(
List< IValidator> validators, {String? message}) → IValidator - Checks whether the given value has a length property and the length matches the validators