unregister<TResponse, TRequest extends Request<TResponse> > method
void
unregister<TResponse, TRequest extends Request<TResponse> >(
- RequestHandler<
TResponse, TRequest> handler
Unregisters the given handler
.
Implementation
void unregister<TResponse, TRequest extends Request<TResponse>>(
RequestHandler<TResponse, TRequest> handler,
) {
assert(
_handlers.containsKey(TRequest),
'unregister<$TResponse, $TRequest> was called for a handler that was never subscribed to',
);
_handlers.remove(TRequest);
}