copyWith method
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,
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,
unknown: unknown,
);