toggleBatteryChargingIndicator method

Future<CommandResponse> toggleBatteryChargingIndicator({
  1. required dynamic deviceId,
  2. 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);
}