If you want to enable the wakelock, i.e. keep the device awake, you can simply call Wakelock . enable and to disable it again, you can use Wakelock. disable : import ‘package:wakelock/wakelock.
If you want to enable the wakelock, i.e. keep the device awake, you can simply call Wakelock . enable and to disable it again, you can use Wakelock. disable : import ‘package:wakelock/wakelock.