ValueValidator<T> typedef
ValueValidator<T> =
bool Function(T value)
if the value is valid returns true
if it's invalid returns false
Implementation
typedef ValueValidator<T> = bool Function(T value);