copyWith method

SystemFiles copyWith({
  1. SystemType? cpuInfo,
  2. SystemType? hosts,
  3. SystemType? memoryInfo,
})

copyWith is the method to copy the class.

Implementation

SystemFiles copyWith({
  SystemType? cpuInfo,
  SystemType? hosts,
  SystemType? memoryInfo,
}) {
  return SystemFiles(
    cpuInfo: cpuInfo ?? this.cpuInfo,
    hosts: hosts ?? this.hosts,
    memoryInfo: memoryInfo ?? this.memoryInfo,
  );
}