dispose method

  1. @override
void dispose()
inherited

Clears all registered listeners and reset the beacon to its initial state.

Implementation

@override
void dispose() {
  _wrapped.forEach((_, fn) {
    fn.call();
  });
  _wrapped.clear();
  currentBuffer.dispose();
  super.dispose();
}