copyWith method
DeviceData
copyWith({
- String? deviceId,
- String? brand,
- String? model,
- String? systemName,
- String? systemVersion,
- String? appVersion,
- String? buildNumber,
- String? packageName,
- String? manufacturer,
- String? deviceName,
- String? deviceType,
- int? totalMemory,
- int? usedMemory,
- bool? isTablet,
- String? adId,
- String? androidId,
- Map<
String, dynamic> ? network, - LocationData? location,
- String? timestamp,
- String? timezone,
- String? platform,
- String? error,
Implementation
DeviceData copyWith({
String? deviceId,
String? brand,
String? model,
String? systemName,
String? systemVersion,
String? appVersion,
String? buildNumber,
String? packageName,
String? manufacturer,
String? deviceName,
String? deviceType,
int? totalMemory,
int? usedMemory,
bool? isTablet,
String? adId,
String? androidId,
Map<String, dynamic>? network,
LocationData? location,
String? timestamp,
String? timezone,
String? platform,
String? error,
}) {
return DeviceData(
deviceId: deviceId ?? this.deviceId,
brand: brand ?? this.brand,
model: model ?? this.model,
systemName: systemName ?? this.systemName,
systemVersion: systemVersion ?? this.systemVersion,
appVersion: appVersion ?? this.appVersion,
buildNumber: buildNumber ?? this.buildNumber,
packageName: packageName ?? this.packageName,
manufacturer: manufacturer ?? this.manufacturer,
deviceName: deviceName ?? this.deviceName,
deviceType: deviceType ?? this.deviceType,
totalMemory: totalMemory ?? this.totalMemory,
usedMemory: usedMemory ?? this.usedMemory,
isTablet: isTablet ?? this.isTablet,
adId: adId ?? this.adId,
androidId: androidId ?? this.androidId,
network: network ?? this.network,
location: location ?? this.location,
timestamp: timestamp ?? this.timestamp,
timezone: timezone ?? this.timezone,
platform: platform ?? this.platform,
error: error ?? this.error,
);
}