dispose method

  1. @override
void dispose()
override

This function cleans up properties of this controller before garbage collection happens.

Implementation

@override
void dispose() {
  arcGISMap = null;

  _backgroundGrid.invalidateCache();
  _arcGISMap.invalidateCache();
  _locationDisplay.invalidateCache();
  __viewInsets.invalidateCache();

  super.dispose();
}