copyWith method

DevToolsSettings copyWith({
  1. bool? enabled,
  2. int? sampleIntervalMs,
  3. int? timelineLimit,
  4. int? batchLimit,
  5. int? performanceLimit,
  6. int? valuePreviewLength,
})

Implementation

DevToolsSettings copyWith({
  bool? enabled,
  int? sampleIntervalMs,
  int? timelineLimit,
  int? batchLimit,
  int? performanceLimit,
  int? valuePreviewLength,
}) {
  return DevToolsSettings(
    enabled: enabled ?? this.enabled,
    sampleIntervalMs: sampleIntervalMs ?? this.sampleIntervalMs,
    timelineLimit: timelineLimit ?? this.timelineLimit,
    batchLimit: batchLimit ?? this.batchLimit,
    performanceLimit: performanceLimit ?? this.performanceLimit,
    valuePreviewLength: valuePreviewLength ?? this.valuePreviewLength,
  );
}