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