validator method
- dynamic value
override
Core validation function (may return a Result or Future<Result>). Don't call directly, use validate or validateAsync.
Implementation
@override
FutureOr<Result> validator(dynamic value) {
final base = super.validator(value);
if (base is Future<Result>) {
return base.then((r) => _continueChain(r, value));
}
return _continueChain(base, value);
}