dispose method

  1. @override
void dispose()
override

Dispose of the widget.

This method calls synthizer.shutdown(), synthizerContext.destroy(), and bufferCache.destroy().

Implementation

@override
void dispose() {
  super.dispose();
  bufferCache.destroy();
  synthizerContext.destroy();
  synthizer.shutdown();
}