dispose method

  1. @override
void dispose()
override

Releases the render targets this target holds and clears texture. Remove its view from the scene first; a disposed target must not be rendered into again.

Implementation

@override
void dispose() {
  _surface.dispose();
  _latest = null;
  _pending = null;
  super.dispose();
}