ChargeState class

Represents the charging state and various related properties of an electric vehicle.

This class provides a detailed overview of the current charging status, including information about the type of charger being used, the state of the battery, and other specifics related to the charging process.

Constructors

ChargeState({String? chargingState, String? fastChargerType, String? fastChargerBrand, int? chargeLimitSoc, int? chargeLimitSocStd, int? chargeLimitSocMin, int? chargeLimitSocMax, bool? chargeToMaxRange, int? maxRangeChargeCounter, bool? fastChargerPresent, double? batteryRange, double? estBatteryRange, double? idealBatteryRange, int? batteryLevel, int? usableBatteryLevel, double? chargeEnergyAdded, double? chargeMilesAddedRated, double? chargeMilesAddedIdeal, int? chargerVoltage, int? chargerPilotCurrent, int? chargerActualCurrent, int? chargerPower, double? timeToFullCharge, bool? tripCharging, double? chargeRate, bool? chargePortDoorOpen, String? connChargeCable, String? scheduledChargingStartTime, bool? scheduledChargingPending, String? userChargeEnableRequest, bool? chargeEnableRequest, String? chargerPhases, String? chargePortLatch, int? chargeCurrentRequest, int? chargeCurrentRequestMax, bool? managedChargingActive, bool? managedChargingUserCanceled, String? managedChargingStartTime, bool? batteryHeaterOn, bool? notEnoughPowerToHeat, int? timestamp})
Constructor for ChargeState class.
ChargeState.fromJson(Map<String, dynamic> json)
Creates a new ChargeState instance from a map.
factory

Properties

batteryHeaterOn → bool?
Indicates if the battery heater is on.
final
batteryLevel → int?
The current battery level as a percentage.
final
batteryRange → double?
The estimated battery range in miles.
final
chargeCurrentRequest → int?
The requested charging current.
final
chargeCurrentRequestMax → int?
The maximum allowable charging current.
final
chargeEnableRequest → bool?
Indicates if a request to enable charging has been sent.
final
chargeEnergyAdded → double?
The amount of energy added to the battery during the current charging session.
final
chargeLimitSoc → int?
State of Charge limit that is set currently.
final
chargeLimitSocMax → int?
Maximum limit for the State of Charge.
final
chargeLimitSocMin → int?
Minimum limit for the State of Charge.
final
chargeLimitSocStd → int?
Standard State of Charge limit.
final
chargeMilesAddedIdeal → double?
The ideal range added during the current charging session.
final
chargeMilesAddedRated → double?
The rated range added during the current charging session.
final
chargePortDoorOpen → bool?
Indicates if the charge port door is open.
final
chargePortLatch → String?
The state of the charge port latch.
final
chargerActualCurrent → int?
The current being delivered to the vehicle.
final
chargeRate → double?
Current charging rate in miles per hour.
final
chargerPhases → String?
Phases being used by the charger.
final
chargerPilotCurrent → int?
The maximum current that the charger can deliver.
final
chargerPower → int?
The power being delivered to the vehicle in kilowatts.
final
chargerVoltage → int?
The voltage at which the vehicle is currently charging.
final
chargeToMaxRange → bool?
Indicates if the vehicle is set to charge to the maximum range.
final
chargingState → String?
The current state of charging.
final
connChargeCable → String?
The type of charge cable connected.
final
estBatteryRange → double?
The estimated battery range considering the current driving style and environmental conditions.
final
fastChargerBrand → String?
Brand of the fast charger being used, if any.
final
fastChargerPresent → bool?
Indicates if a fast charger is currently connected to the vehicle.
final
fastChargerType → String?
Type of the fast charger being used, if any.
final
hashCode → int
The hash code for this object.
no setterinherited
idealBatteryRange → double?
The ideal battery range under optimal driving and environmental conditions.
final
managedChargingActive → bool?
Indicates if managed charging is active.
final
managedChargingStartTime → String?
The time when managed charging was started.
final
managedChargingUserCanceled → bool?
Indicates if a user has canceled managed charging.
final
maxRangeChargeCounter → int?
The number of times the vehicle has been charged to the maximum range.
final
notEnoughPowerToHeat → bool?
Indicates if there is not enough power to heat the vehicle.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scheduledChargingPending → bool?
Indicates if scheduled charging is pending.
final
scheduledChargingStartTime → String?
The time when scheduled charging will begin.
final
timestamp → int?
The timestamp when the charging status was recorded.
final
timeToFullCharge → double?
Estimated time to full charge.
final
tripCharging → bool?
Indicates if the vehicle is currently trip charging.
final
usableBatteryLevel → int?
The current usable battery level as a percentage.
final
userChargeEnableRequest → String?
Indicates if a user has requested to enable charging.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited