isEnabled property

Future<bool> isEnabled

If you want to retrieve the current wakelock status, you will have to call Wakelock.isEnabled and await its result: bool isEnabled = await Wakelock.isEnabled()

Implementation

static Future<bool> get isEnabled => _channel.invokeMethod('isEnabled');