AndroidBatteryInfo class

Android Battery Info data model

Constructors

AndroidBatteryInfo({int? batteryCapacity, int? batteryLevel, int? chargeTimeRemaining, ChargingStatus? chargingStatus, int? currentAverage, int? currentNow, String? health, String? pluggedStatus, bool? present, int? remainingEnergy, int? scale, String? technology, int? temperature, int? voltage})
AndroidBatteryInfo.fromJson(Map<String, dynamic> json)
Deserialize data from json

Properties

batteryCapacity int?
getter/setter pair
batteryLevel int?
getter/setter pair
chargeTimeRemaining int?
getter/setter pair
chargingStatus ChargingStatus?
getter/setter pair
currentAverage int?
getter/setter pair
currentNow int?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
health String?
getter/setter pair
pluggedStatus String?
getter/setter pair
present bool?
getter/setter pair
remainingEnergy int?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale int?
getter/setter pair
technology String?
getter/setter pair
temperature int?
getter/setter pair
voltage int?
getter/setter pair

Methods

getChargingStatus(String? status) ChargingStatus
Retrieves the chargin status from the native value
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialise data back to json from the model
toString() String
A string representation of this object.
inherited

Operators

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