addInterceptor method

void addInterceptor(
  1. RouteInterceptor interceptor
)

Add interceptor and optionally handler in the route chain.

Implementation

void addInterceptor(RouteInterceptor interceptor) {
  _interceptors.add(interceptor);
}