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,
  29. String? theme,
  30. int? processorCount,
  31. String? cpuDescription,
  32. double? processorFrequency,
  33. String? deviceType,
  34. String? batteryStatus,
  35. String? deviceUniqueIdentifier,
  36. bool? supportsVibration,
  37. bool? supportsAccelerometer,
  38. bool? supportsGyroscope,
  39. bool? supportsAudio,
  40. bool? supportsLocationService,
})

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,
  String? theme,
  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,
      // ignore: deprecated_member_use_from_same_package
      screenResolution: screenResolution ?? this.screenResolution,
      // ignore: deprecated_member_use_from_same_package
      timezone: timezone ?? this.timezone,
      // ignore: deprecated_member_use_from_same_package
      language: language ?? this.language,
      // ignore: deprecated_member_use_from_same_package
      theme: theme ?? this.theme,
    );