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