@override Future setRendering(bool render) async { _rendering = render; await withVoidCallback((cb) { set_rendering_ffi(_viewer!, render, cb); }); }