setWallpaper method

Future<ByteBuffer?> setWallpaper(
  1. SetWallpaperDetails details
)

Sets wallpaper to the image at url or wallpaperData with the specified layout

Implementation

Future<ByteBuffer?> setWallpaper(SetWallpaperDetails details) async {
  var $res = await promiseToFuture<JSArrayBuffer?>(
      $js.chrome.wallpaper.setWallpaper(details.toJS));
  return $res?.toDart;
}