dispose method

void dispose()

Used to release resources when this instance will never be used again.

Implementation

void dispose() {
  assert(!_isDisposed);
  hide();
  ServicesBinding.unregisterSystemContextMenuClient(this);
  _isDisposed = true;
}