lockScreen static method

Future<String> lockScreen()

This function is setting the image to the lock screen as a wallpaper.

Implementation

static Future<String> lockScreen() async {
  final String resultvar =
      await _channel.invokeMethod('LockScreen', 'myimage.jpeg');
  return resultvar;
}