validator method

  1. @override
FutureOr<Result> validator(
  1. 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);
}