AsyncValidator<Value> typedef

AsyncValidator<Value> = Future<Object?> Function(Value value)

Signature for the AsyncValidator function which takes value and should returns a Object error, and if doesn't have error should return null.

Implementation

typedef AsyncValidator<Value> = Future<Object?> Function(Value value);