changeWallpaper method

  1. @override
Future<String?> changeWallpaper({
  1. required String url,
  2. required WallpaperScale scale,
  3. required String color,
})
override

Implementation

@override
Future<String?> changeWallpaper({
  required String url,
  required WallpaperScale scale,
  required String color,
}) async {
  return await methodChannel.invokeMethod<String>('changeWallpaper', {
    'url': url,
    'scale': scale.toString().split('.').last,
    'color': color,
  });
}