copyWith method

Thermal copyWith({
  1. List<ThermalType>? cpuThermals,
})

copyWith is the function to copy the class.

Implementation

Thermal copyWith({
  List<ThermalType>? cpuThermals,
}) {
  return Thermal(
    cpuThermals: cpuThermals ?? this.cpuThermals,
  );
}