enabled property

  1. @override
Future<bool> get enabled
override

Returns whether the wakelock is enabled or not.

Implementation

@override
Future<bool> get enabled async => _cookie != null;