Validator<Value> typedef
Validator<Value> =
Object? Function(Value value)
Signature for the Validator function which takes value
and should returns a Object
error, and if doesn't have error
should return null
.
Implementation
typedef Validator<Value> = Object? Function(Value value);