willSendResponse method Null safety

void willSendResponse(
  1. Response response
)

Executed prior to Response being sent.

This method is used to post-process response just before it is sent. By default, does nothing. The response may be altered prior to being sent. This method will be executed for all requests, including server errors.

Implementation

void willSendResponse(Response response) {}