useAsImageFromRepaintBoundary static method

Future<bool> useAsImageFromRepaintBoundary(
  1. GlobalKey<State<StatefulWidget>> boundaryKey, {
  2. double pixelRatio = 2.5,
})

Implementation

static Future<bool> useAsImageFromRepaintBoundary(
  GlobalKey boundaryKey, {
  double pixelRatio = 2.5,
}) {
  return WallpaperPluginPlatform.instance.useAsImage(
    boundaryKey,
    pixelRatio: pixelRatio,
  );
}