copyWith method

DeviceData copyWith({
  1. String? deviceId,
  2. String? brand,
  3. String? model,
  4. String? systemName,
  5. String? systemVersion,
  6. String? appVersion,
  7. String? buildNumber,
  8. String? packageName,
  9. String? manufacturer,
  10. String? deviceName,
  11. String? deviceType,
  12. int? totalMemory,
  13. int? usedMemory,
  14. bool? isTablet,
  15. String? adId,
  16. String? androidId,
  17. Map<String, dynamic>? network,
  18. LocationData? location,
  19. String? timestamp,
  20. String? timezone,
  21. String? platform,
  22. 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,
  );
}