call method

Future<Either<Exception, OUTPUT>> call(
  1. INPUT input
)

Implementation

Future<Either<Exception, OUTPUT>> call(INPUT input) async {
  for (final validator in _validators) {
    final result = validator(input);
    if (result.isLeft) return Left(result.left!);
  }
  return run(input);
}