dispose method

  1. @override
void dispose()
override

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

Implementation

@override
void dispose() {
  dispatchEvent(Event(type: "dispose"));
		morphTexture?.dispose();
		morphTexture = null;
}