copyWith method

SfGaugeThemeData copyWith({
  1. Brightness? brightness,
  2. Color? backgroundColor,
  3. Color? titleColor,
  4. Color? axisLabelColor,
  5. Color? axisLineColor,
  6. Color? majorTickColor,
  7. Color? minorTickColor,
  8. Color? markerColor,
  9. Color? markerBorderColor,
  10. Color? needleColor,
  11. Color? knobColor,
  12. Color? knobBorderColor,
  13. Color? tailColor,
  14. Color? tailBorderColor,
  15. Color? rangePointerColor,
  16. Color? rangeColor,
  17. Color? titleBorderColor,
  18. Color? titleBackgroundColor,
  19. TextStyle? titleTextStyle,
  20. TextStyle? axisLabelTextStyle,
  21. TextStyle? markerTextStyle,
})

Creates a copy of this gauge theme data object with the matching fields replaced with the non-null parameter values.

Implementation

SfGaugeThemeData copyWith(
    {Brightness? brightness,
    Color? backgroundColor,
    Color? titleColor,
    Color? axisLabelColor,
    Color? axisLineColor,
    Color? majorTickColor,
    Color? minorTickColor,
    Color? markerColor,
    Color? markerBorderColor,
    Color? needleColor,
    Color? knobColor,
    Color? knobBorderColor,
    Color? tailColor,
    Color? tailBorderColor,
    Color? rangePointerColor,
    Color? rangeColor,
    Color? titleBorderColor,
    Color? titleBackgroundColor,
    TextStyle? titleTextStyle,
    TextStyle? axisLabelTextStyle,
    TextStyle? markerTextStyle}) {
  return SfGaugeThemeData.raw(
      brightness: brightness,
      backgroundColor: backgroundColor ?? this.backgroundColor,
      titleColor: titleColor ?? this.titleColor,
      axisLabelColor: axisLabelColor ?? this.axisLabelColor,
      axisLineColor: axisLineColor ?? this.axisLineColor,
      majorTickColor: majorTickColor ?? this.majorTickColor,
      minorTickColor: minorTickColor ?? this.minorTickColor,
      markerColor: markerColor ?? this.markerColor,
      markerBorderColor: markerBorderColor ?? this.markerBorderColor,
      needleColor: needleColor ?? this.needleColor,
      knobColor: knobColor ?? this.knobColor,
      knobBorderColor: knobBorderColor ?? this.knobBorderColor,
      tailColor: tailColor ?? this.tailColor,
      tailBorderColor: tailBorderColor ?? this.tailBorderColor,
      rangePointerColor: rangePointerColor ?? this.rangePointerColor,
      rangeColor: rangeColor ?? this.rangeColor,
      titleBorderColor: titleBorderColor ?? this.titleBorderColor,
      titleBackgroundColor: titleBackgroundColor ?? this.titleBackgroundColor,
      titleTextStyle: titleTextStyle ?? this.titleTextStyle,
      axisLabelTextStyle: axisLabelTextStyle ?? this.axisLabelTextStyle,
      markerTextStyle: markerTextStyle ?? this.markerTextStyle);
}