dispose method

  1. @mustCallSuper
void dispose()

Releases allocated resources.

Implementation

@mustCallSuper
void dispose() {
  for (final OpacityLayer layer in _createdLayers) {
    layer.dispose();
  }
  _createdLayers.clear();
}