diff --git a/mobile/lib/utils/wakelock_util.dart b/mobile/lib/utils/wakelock_util.dart index de3de62bb..7e810dc0b 100644 --- a/mobile/lib/utils/wakelock_util.dart +++ b/mobile/lib/utils/wakelock_util.dart @@ -31,4 +31,8 @@ class EnteWakeLock { ); } } + + static Future toggle({required bool enable}) async { + await WakelockPlus.toggle(enable: enable); + } }