copyWith method

AndroidDeviceInfo copyWith({
  1. SystemInfo? system,
  2. CPUInfo? cpu,
  3. Android? android,
  4. DRMINFO? drmInfo,
  5. Memory? memory,
  6. CameraInfos? camera,
  7. Battery? battery,
  8. Display? display,
  9. Thermal? thermal,
  10. Network? network,
  11. SimInfo? simInfo,
  12. SystemFiles? systemFile,
})

copyWith is the function to copy the class.

Implementation

AndroidDeviceInfo copyWith({
  SystemInfo? system,
  CPUInfo? cpu,
  Android? android,
  DRMINFO? drmInfo,
  Memory? memory,
  CameraInfos? camera,
  Battery? battery,
  Display? display,
  Thermal? thermal,
  Network? network,
  SimInfo? simInfo,
  SystemFiles? systemFile,
}) {
  return AndroidDeviceInfo(
    system: system ?? this.system,
    cpu: cpu ?? this.cpu,
    android: android ?? this.android,
    drmInfo: drmInfo ?? this.drmInfo,
    memory: memory ?? this.memory,
    camera: camera ?? this.camera,
    battery: battery ?? this.battery,
    display: display ?? this.display,
    thermal: thermal ?? this.thermal,
    network: network ?? this.network,
    simInfo: simInfo ?? this.simInfo,
    systemFile: systemFile ?? this.systemFile,
  );
}