NOTE: only use this if widget is present in the widget tree
Returns the Uint8List
of the widget
image = await DavinciCapture.click(
context: context, imageKey, pixelRatio: 3);
Creates new widget pipeline and captures screenshot of the widget.
NOTE: IN this method widget doesn't require to be present in the widget tree.
image = await DavinciCapture.offStage(
context: context, const PreviewWidget());