call method

FutureOr<void> call(
  1. Context context,
  2. Next next
)

The interceptor middleware-style function.

Implementation

FutureOr<void> call(Context context, Next next) {
  // Reset the exception handler.
  context[ExceptionHandler] = handler;

  return Future.sync(next).onError<Object>(_createHandler(context));
}