keepScreenOn static method

Future<bool> keepScreenOn(
  1. bool on
)

Keeps the display from sleeping while on (video, navigation, scanners).

Implementation

static Future<bool> keepScreenOn(bool on) => kIsWeb ? UWebBridge.keepScreenOn(on) : UDeviceChannel.keepScreenOn(on);