isAllowLockWhileScreenOn property
Returns true if the FLAG_ALLOW_LOCK_WHILE_SCREEN_ON flag is assigned (Android only).
Implementation
static Future<bool?> get isAllowLockWhileScreenOn {
return KeepScreenOnPlatform.instance.isAllowLockWhileScreenOn;
}