copyWith method
TermosThemeData
copyWith({
- TermosColors? colors,
- DotGridConfig? dotGrid,
- TermosTextStyles? textStyles,
- TermosMetrics? metrics,
- TermosStarfieldConfig? starfield,
- TermosSegmentedEffects? segmented,
- TermosButtonEffects? button,
- TermosCrtEffects? crt,
- TermosTimePickerEffects? timePicker,
- bool? heavyEffectsEnabled,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
TermosThemeData copyWith({
TermosColors? colors,
DotGridConfig? dotGrid,
TermosTextStyles? textStyles,
TermosMetrics? metrics,
TermosStarfieldConfig? starfield,
TermosNavBarEffects? navBar,
TermosSegmentedEffects? segmented,
TermosButtonEffects? button,
TermosCrtEffects? crt,
TermosTimePickerEffects? timePicker,
bool? heavyEffectsEnabled,
}) {
return TermosThemeData(
colors: colors ?? this.colors,
dotGrid: dotGrid ?? this.dotGrid,
textStyles: textStyles ?? this.textStyles,
metrics: metrics ?? this.metrics,
starfield: starfield ?? this.starfield,
navBar: navBar ?? this.navBar,
segmented: segmented ?? this.segmented,
button: button ?? this.button,
crt: crt ?? this.crt,
timePicker: timePicker ?? this.timePicker,
heavyEffectsEnabled: heavyEffectsEnabled ?? this.heavyEffectsEnabled,
);
}