SmartphoneRegistration constructor

SmartphoneRegistration({
  1. String? deviceId,
  2. String? deviceDisplayName,
  3. DateTime? registrationCreatedOn,
  4. bool isConnected = true,
  5. BatteryChargingState batteryChargingState = BatteryChargingState.unknown,
  6. String? hardwareName,
  7. String? platform,
  8. String? deviceName,
  9. String? deviceManufacturer,
  10. String? deviceModel,
  11. String? operatingSystem,
  12. String? sdk,
  13. String? release,
})

Implementation

SmartphoneRegistration({
  super.deviceId,
  String? deviceDisplayName,
  super.registrationCreatedOn,
  super.isConnected = true, // A smartphone is always connected.
  super.batteryChargingState,
  super.hardwareName,
  this.platform,
  this.deviceName,
  this.deviceManufacturer,
  this.deviceModel,
  this.operatingSystem,
  this.sdk,
  this.release,
}) : super(
       deviceDisplayName:
           deviceDisplayName ??
           ((Platform.isAndroid)
               ? '$platform (${deviceManufacturer?.toUpperCase()}) - $deviceModel [SDK: $sdk]'
               : '$platform - $hardwareName [SDK: $sdk]'),
     );