addAllowLockWhileScreenOn static method
Assign the FLAG_ALLOW_LOCK_WHILE_SCREEN_ON flag to the window (Android only).
If you specify false for on
, the opposite operation is performed.
Implementation
static Future<bool> addAllowLockWhileScreenOn({bool on = true}) {
return KeepScreenOnPlatform.instance.addAllowLockWhileScreenOn(on: on);
}