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 WakelockPlus.enabled and await its result:

bool wakelockEnabled = await WakelockPlus.enabled;

Implementation

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