mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-02-18 06:32:39 +00:00
10 lines
231 B
Dart
10 lines
231 B
Dart
|
import 'package:wakelock/wakelock.dart';
|
||
|
|
||
|
/// Device utilities
|
||
|
///
|
||
|
/// @author Pierre Hubert
|
||
|
|
||
|
/// Interface for requesting device wake locking
|
||
|
Future<void> setWakeLock(bool enabled) async =>
|
||
|
await Wakelock.toggle(on: enabled);
|