copyWith method

  1. @override
PerformanceTheme copyWith({
  1. PerformanceStrings? strings,
  2. Color? buildColor,
  3. Color? rasterColor,
  4. Color? otherColor,
  5. Color? goodColor,
  6. Color? warnColor,
  7. Color? badColor,
  8. Color? hudSurface,
  9. Color? hudPrimaryText,
  10. Color? hudSecondaryText,
  11. Color? hudAccent,
  12. Color? hudIdle,
  13. Color? hudGood,
  14. Color? hudWarn,
  15. Color? hudBad,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
PerformanceTheme copyWith({
  PerformanceStrings? strings,
  Color? buildColor,
  Color? rasterColor,
  Color? otherColor,
  Color? goodColor,
  Color? warnColor,
  Color? badColor,
  Color? hudSurface,
  Color? hudPrimaryText,
  Color? hudSecondaryText,
  Color? hudAccent,
  Color? hudIdle,
  Color? hudGood,
  Color? hudWarn,
  Color? hudBad,
}) {
  return PerformanceTheme(
    strings: strings ?? this.strings,
    buildColor: buildColor ?? this.buildColor,
    rasterColor: rasterColor ?? this.rasterColor,
    otherColor: otherColor ?? this.otherColor,
    goodColor: goodColor ?? this.goodColor,
    warnColor: warnColor ?? this.warnColor,
    badColor: badColor ?? this.badColor,
    hudSurface: hudSurface ?? this.hudSurface,
    hudPrimaryText: hudPrimaryText ?? this.hudPrimaryText,
    hudSecondaryText: hudSecondaryText ?? this.hudSecondaryText,
    hudAccent: hudAccent ?? this.hudAccent,
    hudIdle: hudIdle ?? this.hudIdle,
    hudGood: hudGood ?? this.hudGood,
    hudWarn: hudWarn ?? this.hudWarn,
    hudBad: hudBad ?? this.hudBad,
  );
}