dispose method

  1. @override
void dispose()
override

Implementation

@override
void dispose() {
  dispatchEvent(Event(type: "dispose"));
  depthTexture?.dispose();
  texture.dispose();
}