BatteryState class
Constructors
-
BatteryState({Header? header, double? voltage, double? current, double? charge, double? capacity, double? design_capacity, double? percentage, int? power_supply_status, int? power_supply_health, int? power_supply_technology, bool? present, List<
double> ? cell_voltage, String? location, String? serial_number})
Properties
- capacity ↔ double
-
getter/setter pair
-
cell_voltage
↔ List<
double> -
getter/setter pair
- charge ↔ double
-
getter/setter pair
- current ↔ double
-
getter/setter pair
- design_capacity ↔ double
-
getter/setter pair
- fullType → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- header ↔ Header
-
getter/setter pair
- location ↔ String
-
getter/setter pair
- md5sum → String
-
no setter
- messageDefinition → String
-
no setter
- percentage ↔ double
-
getter/setter pair
- power_supply_health ↔ int
-
getter/setter pair
- power_supply_status ↔ int
-
getter/setter pair
- power_supply_technology ↔ int
-
getter/setter pair
- present ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serial_number ↔ String
-
getter/setter pair
- voltage ↔ double
-
getter/setter pair
Methods
-
call(
{Header? header, double? voltage, double? current, double? charge, double? capacity, double? design_capacity, double? percentage, int? power_supply_status, int? power_supply_health, int? power_supply_technology, bool? present, List< double> ? cell_voltage, String? location, String? serial_number}) → BatteryState -
deserialize(
ByteDataReader reader) → BatteryState -
getMessageSize(
) → int -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
ByteDataWriter writer) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- $prototype ↔ BatteryState
-
getter/setter pair
Constants
- POWER_SUPPLY_HEALTH_COLD → const int
- POWER_SUPPLY_HEALTH_DEAD → const int
- POWER_SUPPLY_HEALTH_GOOD → const int
- POWER_SUPPLY_HEALTH_OVERHEAT → const int
- POWER_SUPPLY_HEALTH_OVERVOLTAGE → const int
- POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE → const int
- POWER_SUPPLY_HEALTH_UNKNOWN → const int
- POWER_SUPPLY_HEALTH_UNSPEC_FAILURE → const int
- POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE → const int
- POWER_SUPPLY_STATUS_CHARGING → const int
- POWER_SUPPLY_STATUS_DISCHARGING → const int
- POWER_SUPPLY_STATUS_FULL → const int
- POWER_SUPPLY_STATUS_NOT_CHARGING → const int
- POWER_SUPPLY_STATUS_UNKNOWN → const int
- POWER_SUPPLY_TECHNOLOGY_LIFE → const int
- POWER_SUPPLY_TECHNOLOGY_LIMN → const int
- POWER_SUPPLY_TECHNOLOGY_LION → const int
- POWER_SUPPLY_TECHNOLOGY_LIPO → const int
- POWER_SUPPLY_TECHNOLOGY_NICD → const int
- POWER_SUPPLY_TECHNOLOGY_NIMH → const int
- POWER_SUPPLY_TECHNOLOGY_UNKNOWN → const int