lockScreen static method
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;
}