ScreenInfo class Null safety
A screen's extra information.
Constructors
- ScreenInfo({required String screenToken, required int batteryPercentage, required int lowBatteryThreshold, required int lowBatteryNotificationDelay, required int batteryReportingDelay, required bool isOnline})
- Constructs a ScreenInfo instance with a screen's extra information.
-
ScreenInfo.fromJson(Map<
String, Object?> json) - Named constructor to create ScreenInfo from a Map.
Properties
- batteryPercentage → int
-
The current battery level of this screen.
final
- batteryReportingDelay ↔ int
-
The delay between updating the battery level of this screen.
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isOnline → bool
-
The status to the presence of this screen. [...]
final
- lowBatteryNotificationDelay ↔ int
-
The delay between notifications to 'low battery'.
read / write
- lowBatteryThreshold ↔ int
-
The threshold at which a 'low battery' notification is sent.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- screenToken → String
-
The unique identifier of this screen.
final
Methods
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited