dispose method Null safety

void dispose()

Dispose messages, events, closes and errors subscriptions

Implementation

void dispose() {
  _onMessages = null;
  _onEvents = null;
  _onCloses = null;
  _onErrors = null;
}