ApplyMiddleware<T> constructor

ApplyMiddleware<T>({
  1. required ApiEndpoint<T> child,
  2. required ApiMiddleware middleware,
})

Implementation

ApplyMiddleware({
  required ApiEndpoint<T> child,
  required ApiMiddleware middleware,
}) : super(child, (h) => (r) => middleware.apply(r, h));