I have to save many images to the device to make videos.
As saving multiple images takes so much time and resources, I use compute to save images.
I want to show the progress in saving images so that users can notice how much time left for video.
But, calling progressDialog.update(progress: progress) in compute cause error like this
[ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: Invalid argument(s): Illegal argument in isolate message : (object is a closure - Function _handleBuildScheduled@587399801:.)
How can I show progress in compute method?