dispose method

void dispose()

Disposes current MessageCollection and stops all events from being received.

Implementation

void dispose() {
  sbLog.i(StackTrace.current, 'dispose()');
  messageList.clear();
  _chat.collectionManager.removeMessageCollection(this);
  _isDisposed = true;
}