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. String? screenResolution,
  11. int? screenHeightPixels,
  12. int? screenWidthPixels,
  13. double? screenDensity,
  14. int? screenDpi,
  15. bool? online,
  16. bool? charging,
  17. bool? lowMemory,
  18. bool? simulator,
  19. int? memorySize,
  20. int? freeMemory,
  21. int? usableMemory,
  22. int? storageSize,
  23. int? freeStorage,
  24. int? externalStorageSize,
  25. int? externalFreeStorage,
  26. DateTime? bootTime,
  27. String? timezone,
  28. String? language,
})

Implementation

SentryDevice copyWith({
  String? name,
  String? family,
  String? model,
  String? modelId,
  String? arch,
  double? batteryLevel,
  SentryOrientation? orientation,
  String? manufacturer,
  String? brand,
  String? screenResolution,
  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,
  String? timezone,
  String? language,
}) =>
    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,
      screenResolution: screenResolution ?? this.screenResolution,
      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,
      timezone: timezone ?? this.timezone,
      language: language ?? this.language,
    );