copyWith method
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,
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,
);
}