dispose method

  1. @mustCallSuper
void dispose()

This function cleans up properties of this controller before garbage collection happens. This function should be overriden by subclasses that have other properties that need to be cleaned up.

Implementation

@mustCallSuper
void dispose() {
  _graphicsOverlays.invalidateCache();
  _labeling.invalidateCache();
  _selectionProperties.invalidateCache();
}