dispose method

void dispose()

Used in case we want to remove the timer to send batched events.

Implementation

void dispose() {
  _batchTimer?.cancel();
  _batchTimer = null;
}