enabled property

  1. @override
Future<bool> get enabled
override

Returns whether the wakelock is enabled or not.

Implementation

@override
Future<bool> get enabled async {
  final message = await _api.isEnabled();

  return message.enabled!;
}