keepOn static method

Future<void> keepOn({
  1. required bool enabled,
})

If enabled == true, the device's screen will be keeping turned on.

Implementation

static Future<void> keepOn({required bool enabled}) async {
  return _channel.invokeMethod(
    'keepOn',
    {'enabled': enabled},
  );
}