shareWidget static method
void
shareWidget({
Implementation
static void shareWidget({
required final Widget widget,
}) async =>
await ScreenshotController().capture().then((final Uint8List? image) async {
final Directory directory = await getApplicationDocumentsDirectory();
final File imagePath = await File('${directory.path}/image.png').create();
await imagePath.writeAsBytes(image!);
shareFile(<String>[imagePath.path], "");
});