1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-01-28 12:43:00 +00:00

10 lines
241 B
Dart
Raw Normal View History

2020-04-23 17:37:12 +02:00
import 'package:wakelock/wakelock.dart';
2020-04-24 12:19:13 +02:00
/// Wake lock plugin interface
2020-04-23 17:37:12 +02:00
///
/// @author Pierre Hubert
/// Interface for requesting device wake locking
Future<void> setWakeLock(bool enabled) async =>
await Wakelock.toggle(on: enabled);