keepScreenOn static method
Works on Android and iOS Keep screen on or not
Implementation
static Future<void> keepScreenOn(bool on) {
if (Platform.isAndroid || Platform.isIOS) {
FLog.i("keepScreenOn :$on");
return FplayerPlatform.instance.setScreenOn(on);
}
return Future.value();
}