setWallpaperFromRepaintBoundary static method

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

Implementation

static Future<bool> setWallpaperFromRepaintBoundary(
  GlobalKey boundaryKey,
  String target, {
  double pixelRatio = 2.5,
}) {
  return WallpaperPluginPlatform.instance.setWallpaper(
    boundaryKey,
    target,
    pixelRatio: pixelRatio,
  );
}