batteryService property

BatteryService? batteryService

Get the BatteryService if the device supports it. Is null if not supported / discovered on device.

Due to Movisens API, the service for movisens battery is seperate fom the general battery service in this plugin they are bundled into this BatteryService.

Implementation

BatteryService? get batteryService =>
    _services[MovisensServiceTypes.battery] as BatteryService?;