onClosed method

void onClosed()

Implementation

void onClosed() {
  _closed = true;
  _closeCompleter.complete();
}