dispose method

void dispose()

Disposes the shared Disposables, last made first, then the index, the camera and the state. Once only.

Implementation

void dispose() {
  if (_disposed) return;
  _disposed = true;
  for (final value in _made.reversed) {
    if (value is Disposable) value.dispose();
  }
  _made.clear();
  _shared.clear();
  index.dispose();
  camera.dispose();
  _symbolsState.dispose();
}