copyWith method

ThreadDetail copyWith({
  1. int? threadId,
  2. double? cpuUsage,
  3. double? userTime,
  4. double? systemTime,
  5. int? runState,
  6. String? threadName,
  7. bool? isActive,
})

Implementation

ThreadDetail copyWith({
  int? threadId,
  double? cpuUsage,
  double? userTime,
  double? systemTime,
  int? runState,
  String? threadName,
  bool? isActive,
}) {
  return ThreadDetail(
    threadId: threadId ?? this.threadId,
    cpuUsage: cpuUsage ?? this.cpuUsage,
    userTime: userTime ?? this.userTime,
    systemTime: systemTime ?? this.systemTime,
    runState: runState ?? this.runState,
    threadName: threadName ?? this.threadName,
    isActive: isActive ?? this.isActive,
  );
}