dispose method
Releases backend resources.
Implementation
@override
void dispose() {
try {
_lastFrame?.dispose();
_lastFrame = null;
_source.dispose();
} finally {
// The sorter owns an isolate; release it even if texture cleanup throws.
_depthSorter.dispose();
_backgroundTexture = null;
_resolvedColorTexture = null;
}
}