sendEmptyResult method Null safety

FutureOr<Response> sendEmptyResult(
  1. Request req,
  2. dynamic err
)

Creates a function that sends an empty result with 204 status code. If error occur it sends ErrorDescription with approproate status code.

  • req a HTTP request object.
  • err an error object to be sent.