keepScreenOn static method

Future<void> keepScreenOn(
  1. bool on
)

Works on Android and iOS Keep screen on or not

Implementation

static Future<void> keepScreenOn(bool on) {
  if (Platform.isAndroid || Platform.isIOS) {
    FijkLog.i("keepScreenOn :$on");
    return _channel.invokeMethod("setScreenOn", <String, dynamic>{'on': on});
  }
  return Future.value();
}