void close([bool isFromRequester = false ])

Source

void close([bool isFromRequester = false]) {
  while (_onClose.isNotEmpty) {
    _onClose.removeAt(0)();
  }

  if (!isFromRequester) {
    _resp.close();
  }
}