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