copyWith method
Returns a copy where each given value replaces the current one.
Implementation
TopSnapshot copyWith({
final CapsuleRuntimeStatus? runtime,
final DateTime? updatedAt,
final List<DeployAttempt>? deployments,
final List<PodResourceSeries>? podResources,
final CapsuleNetworkSeries? network,
final DatabaseMetrics? database,
final DateTime? metricsUntil,
final List<LogRecord>? logs,
final bool? isStatusStale,
}) {
return TopSnapshot(
runtime: runtime ?? this.runtime,
updatedAt: updatedAt ?? this.updatedAt,
deployments: deployments ?? this.deployments,
podResources: podResources ?? this.podResources,
network: network ?? this.network,
database: database ?? this.database,
metricsUntil: metricsUntil ?? this.metricsUntil,
logs: logs ?? this.logs,
isStatusStale: isStatusStale ?? this.isStatusStale,
);
}