void close([DSError err = null ])

close the request from responder side and also notify the requester

Source

void close([DSError err = null]) {
  _sentStreamStatus = StreamStatus.closed;
  responder.closeResponse(rid, error: err, response: this);
}