after method Null safety

void after(
  1. RouteInterceptor interceptor,
  2. [List<RouteInterceptor>? interceptors]
)

Add interceptor and optionally interceptors to be executed after handler in the route chain.

Implementation

void after(RouteInterceptor interceptor,
    [List<RouteInterceptor>? interceptors]) {
  _after.add(interceptor);
  if (interceptors != null) {
    _after.addAll(interceptors);
  }
}