dispose method Null safety

void dispose()

Implementation

void dispose() {
  _connectionController.close();
  _stateController.close();
  _events.cancel();
}