copyWith method

SentryDevice copyWith({
  1. String? name,
  2. String? family,
  3. String? model,
  4. String? modelId,
  5. String? arch,
  6. double? batteryLevel,
  7. SentryOrientation? orientation,
  8. String? manufacturer,
  9. String? brand,
  10. int? screenHeightPixels,
  11. int? screenWidthPixels,
  12. double? screenDensity,
  13. int? screenDpi,
  14. bool? online,
  15. bool? charging,
  16. bool? lowMemory,
  17. bool? simulator,
  18. int? memorySize,
  19. int? freeMemory,
  20. int? usableMemory,
  21. int? storageSize,
  22. int? freeStorage,
  23. int? externalStorageSize,
  24. int? externalFreeStorage,
  25. DateTime? bootTime,
  26. int? processorCount,
  27. String? cpuDescription,
  28. double? processorFrequency,
  29. String? deviceType,
  30. String? batteryStatus,
  31. String? deviceUniqueIdentifier,
  32. bool? supportsVibration,
  33. bool? supportsAccelerometer,
  34. bool? supportsGyroscope,
  35. bool? supportsAudio,
  36. bool? supportsLocationService,
})

Implementation

SentryDevice copyWith({
  String? name,
  String? family,
  String? model,
  String? modelId,
  String? arch,
  double? batteryLevel,
  SentryOrientation? orientation,
  String? manufacturer,
  String? brand,
  int? screenHeightPixels,
  int? screenWidthPixels,
  double? screenDensity,
  int? screenDpi,
  bool? online,
  bool? charging,
  bool? lowMemory,
  bool? simulator,
  int? memorySize,
  int? freeMemory,
  int? usableMemory,
  int? storageSize,
  int? freeStorage,
  int? externalStorageSize,
  int? externalFreeStorage,
  DateTime? bootTime,
  int? processorCount,
  String? cpuDescription,
  double? processorFrequency,
  String? deviceType,
  String? batteryStatus,
  String? deviceUniqueIdentifier,
  bool? supportsVibration,
  bool? supportsAccelerometer,
  bool? supportsGyroscope,
  bool? supportsAudio,
  bool? supportsLocationService,
}) =>
    SentryDevice(
      name: name ?? this.name,
      family: family ?? this.family,
      model: model ?? this.model,
      modelId: modelId ?? this.modelId,
      arch: arch ?? this.arch,
      batteryLevel: batteryLevel ?? this.batteryLevel,
      orientation: orientation ?? this.orientation,
      manufacturer: manufacturer ?? this.manufacturer,
      brand: brand ?? this.brand,
      screenHeightPixels: screenHeightPixels ?? this.screenHeightPixels,
      screenWidthPixels: screenWidthPixels ?? this.screenWidthPixels,
      screenDensity: screenDensity ?? this.screenDensity,
      screenDpi: screenDpi ?? this.screenDpi,
      online: online ?? this.online,
      charging: charging ?? this.charging,
      lowMemory: lowMemory ?? this.lowMemory,
      simulator: simulator ?? this.simulator,
      memorySize: memorySize ?? this.memorySize,
      freeMemory: freeMemory ?? this.freeMemory,
      usableMemory: usableMemory ?? this.usableMemory,
      storageSize: storageSize ?? this.storageSize,
      freeStorage: freeStorage ?? this.freeStorage,
      externalStorageSize: externalStorageSize ?? this.externalStorageSize,
      externalFreeStorage: externalFreeStorage ?? this.externalFreeStorage,
      bootTime: bootTime ?? this.bootTime,
      processorCount: processorCount ?? this.processorCount,
      cpuDescription: cpuDescription ?? this.cpuDescription,
      processorFrequency: processorFrequency ?? this.processorFrequency,
      deviceType: deviceType ?? this.deviceType,
      batteryStatus: batteryStatus ?? this.batteryStatus,
      deviceUniqueIdentifier:
          deviceUniqueIdentifier ?? this.deviceUniqueIdentifier,
      supportsVibration: supportsVibration ?? this.supportsVibration,
      supportsAccelerometer:
          supportsAccelerometer ?? this.supportsAccelerometer,
      supportsGyroscope: supportsGyroscope ?? this.supportsGyroscope,
      supportsAudio: supportsAudio ?? this.supportsAudio,
      supportsLocationService:
          supportsLocationService ?? this.supportsLocationService,
    );