enabled property

  1. @override
Future<bool> get enabled
override

Returns whether the wakelock is enabled or not.

Implementation

@override
Future<bool> get enabled async =>
    await _channel.invokeMethod('enabled') as bool;