BatteryLevelStatus class

Represents the battery status of a device, including various indicators such as charging status, fault status, and battery percentage.

This class provides detailed information about the battery's state, which can be useful for monitoring the power conditions of a scanning device.

Constructors

BatteryLevelStatus({required bool isBatteryPresent, required bool isWirelessCharging, required bool isWiredCharging, required bool isCharging, required bool isBatteryFaulty, required int percentage})
Constructs a BatteryLevelStatus object containing information about the battery's state, charging method, and percentage.

Properties

hashCode int
The hash code for this object.
no setterinherited
isBatteryFaulty bool
Indicates whether the battery has a fault.
final
isBatteryPresent bool
Indicates whether the battery is present in the device.
final
isCharging bool
Indicates whether the battery is currently charging, regardless of the method.
final
isWiredCharging bool
Indicates whether the device is charging via a wired connection.
final
isWirelessCharging bool
Indicates whether the device is charging wirelessly.
final
percentage int
The current battery level as a percentage.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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