screenshot_current_widget method

  1. @override
Future<Uint8List?> screenshot_current_widget()
override

Implementation

@override
Future<Uint8List?> screenshot_current_widget() async {
  try {
    BuildContext? context = GeneralLibraryAppBaseFlutter
        .flutter_repaint_boundery_key.currentContext;
    if (context != null) {
      try {
        return await context.toImagePng();
      } catch (e) {}
    }
  } catch (e) {}
  return null;
}