copyWith method
CockpitPerformanceSummary
copyWith({
- int? frameCount,
- int? jankCount,
- double? fps,
- bool clearFps = false,
- CockpitPerformancePhaseSummary? build,
- CockpitPerformancePhaseSummary? raster,
- CockpitPerformancePhaseSummary? vsync,
- CockpitPerformancePhaseSummary? total,
- Map<
String, int> ? layerCacheMax, - Map<
String, int> ? pictureCacheMax, - int? newGenGcCount,
- int? oldGenGcCount,
Implementation
CockpitPerformanceSummary copyWith({
int? frameCount,
int? jankCount,
double? fps,
bool clearFps = false,
CockpitPerformancePhaseSummary? build,
CockpitPerformancePhaseSummary? raster,
CockpitPerformancePhaseSummary? vsync,
CockpitPerformancePhaseSummary? total,
Map<String, int>? layerCacheMax,
Map<String, int>? pictureCacheMax,
int? newGenGcCount,
int? oldGenGcCount,
}) {
return CockpitPerformanceSummary(
frameCount: frameCount ?? this.frameCount,
jankCount: jankCount ?? this.jankCount,
fps: clearFps ? null : (fps ?? this.fps),
build: build ?? this.build,
raster: raster ?? this.raster,
vsync: vsync ?? this.vsync,
total: total ?? this.total,
layerCacheMax: layerCacheMax ?? this.layerCacheMax,
pictureCacheMax: pictureCacheMax ?? this.pictureCacheMax,
newGenGcCount: newGenGcCount ?? this.newGenGcCount,
oldGenGcCount: oldGenGcCount ?? this.oldGenGcCount,
);
}