call method

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

The interceptor middleware-style function.

Implementation

FutureOr<void> call(Context context, Next next) {
  return Future.sync(next).onError<Object>((error, stack) {
    return handler(context, error, stack);
  });
}