enabled property

Future<bool> enabled

Returns whether the wakelock is currently enabled or not.

If you want to retrieve the current wakelock status, you will have to call Wakelock.enabled and await its result:

bool wakelockEnabled = await Wakelock.enabled;

Implementation

static Future<bool> get enabled => wakelockPlatformInstance.enabled;