toggleBatteryChargingIndicator method
Future<CommandResponse>
toggleBatteryChargingIndicator({
- required dynamic deviceId,
- required bool enabled,
Toggles the battery charging indicator on or off based on the enabled
flag.
deviceId
- The identifier of the target device.
enabled
- A boolean indicating whether to enable or disable the battery charging indicator.
Implementation
Future<CommandResponse> toggleBatteryChargingIndicator(
{required deviceId, required bool enabled}) async {
return sendCommand(
deviceId,
enabled
? batteryChargingIndicatorEnabled
: batteryChargingIndicatorDisabled);
}