How do I capture a screenshot of a custom widget using a custom action?

Widgets & Design

I'm using the Screenshot package to capture a screenshot of my custom widget and save the image to a page state variable. I have it working just fine, but only because I'm calling the capture method from within the widget with a button.

I would like to do the capture from an existing button on the page.

What have you tried so far?
Did you check FlutterFlow's Documentation for this topic?
Yes
3
1 reply