dispose method

void dispose()

Implementation

void dispose(){
  if(disposed) return;
  disposed = true;
  ticker?.dispose();
  if(texture != null){
    FlutterAngle.deleteTexture(texture!);
  }
  renderer?.dispose();
  renderTarget?.dispose();
  falseRenderTarget?.dispose();
  scene.dispose();
  for(final event in disposeEvents){
    event.call();
  }
}