import 'package:wakelock/wakelock.dart'; /// Device utilities /// /// @author Pierre Hubert /// Interface for requesting device wake locking Future setWakeLock(bool enabled) async => await Wakelock.toggle(on: enabled);