mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 04:49:21 +00:00
10 lines
245 B
Dart
10 lines
245 B
Dart
import 'package:wakelock/wakelock.dart';
|
|
|
|
/// Wake lock plugin interface
|
|
///
|
|
/// @author Pierre Hubert
|
|
|
|
/// Interface for requesting device wake locking
|
|
Future<void> setWakeLock(bool enabled) async =>
|
|
await Wakelock.toggle(enable: enabled);
|