@override Future setFrameRate(int framerate) async { final interval = 1000.0 / framerate; set_frame_interval_ffi(_viewer!, interval); }