copyWith method

  1. @override
TermosThemeData copyWith({
  1. TermosColors? colors,
  2. DotGridConfig? dotGrid,
  3. TermosTextStyles? textStyles,
  4. TermosMetrics? metrics,
  5. TermosStarfieldConfig? starfield,
  6. TermosNavBarEffects? navBar,
  7. TermosSegmentedEffects? segmented,
  8. TermosButtonEffects? button,
  9. TermosCrtEffects? crt,
  10. TermosTimePickerEffects? timePicker,
  11. 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,
  );
}