HardwareDeviceRegistration constructor
HardwareDeviceRegistration({})
Creates a new HardwareDeviceRegistration based on hardware information,
incl. hardwareName and batteryChargingState.
If no deviceDisplayName is given, it is built from hardwareName and
batteryChargingState.
Implementation
HardwareDeviceRegistration({
super.deviceId,
String? deviceDisplayName,
super.registrationCreatedOn,
super.isConnected,
this.batteryChargingState = BatteryChargingState.unknown,
this.hardwareName,
}) : super(deviceDisplayName: deviceDisplayName ?? '$hardwareName [${batteryChargingState.name.toUpperCase()}]');