dispose method

void dispose()

Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.

Implementation

void dispose() {
  if (map != null) {
    map!.dispose();
  }

  if (mapPass != null) {
    mapPass!.dispose();
  }
}