registerInterceptor method Null safety

void registerInterceptor(
  1. String? route,
  2. dynamic action(
    1. Request req
    )
)

Registers a middleware action for the given route.

  • route the route to register in this object's REST server (service).
  • action the middleware action to perform at the given route.