onRun method

  1. @override
FutureOr<A> onRun(
  1. A arg
)
override

Hook method that is called before the next handler is run.

The returned value is passed to the next handler.

If it throws, the call chain is aborted and the exception propagates to the caller.

Implementation

@override
FutureOr<A> onRun(final A arg) {
  if (_onRun == null) return arg;
  return _onRun(arg);
}