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

10 lines
241 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(on: enabled);