getPowerState method

Future<int> getPowerState()

Gets the current power state (see PowerState).

Implementation

Future<int> getPowerState() async {
  return (await _get(CapturePropertyIds.powerStateDevice)) as int;
}