close method

void close()

Implementation

void close() {
  _subscriptions.forEach((sub) => sub.cancel());
  stream.close();
}