setWallpaper method

Future<String?> setWallpaper(
  1. File imageFile,
  2. int location
)

Sets the wallpaper for the specified location.

imageFile is the file containing the image to be set as wallpaper. location is the screen location where the wallpaper should be set. It can be homeScreen, lockScreen, or bothScreens.

Throws an UnimplementedError if the method is not implemented by the platform.

Implementation

Future<String?> setWallpaper(File imageFile, int location) {
  throw UnimplementedError('setWallpaper() has not been implemented.');
}