copyWith method

FluentCartesianChartStyle copyWith({
  1. WidgetStateProperty<TextStyle?>? axisTextStyle,
  2. WidgetStateProperty<Color?>? axisLineColor,
  3. WidgetStateProperty<Color?>? gridLineColor,
  4. WidgetStateProperty<double?>? gridLineOpacity,
  5. WidgetStateProperty<TextStyle?>? axisTitleStyle,
  6. WidgetStateProperty<EdgeInsetsGeometry?>? legendRowPadding,
  7. WidgetStateProperty<EdgeInsetsGeometry?>? plotPadding,
  8. WidgetStateProperty<double?>? dimmedOpacity,
  9. WidgetStateProperty<Color?>? tooltipBackgroundColor,
  10. WidgetStateProperty<BorderRadius?>? tooltipBorderRadius,
})

This style with the given properties replaced.

Implementation

FluentCartesianChartStyle copyWith({
  WidgetStateProperty<TextStyle?>? axisTextStyle,
  WidgetStateProperty<Color?>? axisLineColor,
  WidgetStateProperty<Color?>? gridLineColor,
  WidgetStateProperty<double?>? gridLineOpacity,
  WidgetStateProperty<TextStyle?>? axisTitleStyle,
  WidgetStateProperty<EdgeInsetsGeometry?>? legendRowPadding,
  WidgetStateProperty<EdgeInsetsGeometry?>? plotPadding,
  WidgetStateProperty<double?>? dimmedOpacity,
  WidgetStateProperty<Color?>? tooltipBackgroundColor,
  WidgetStateProperty<BorderRadius?>? tooltipBorderRadius,
}) => FluentCartesianChartStyle(
  axisTextStyle: axisTextStyle ?? this.axisTextStyle,
  axisLineColor: axisLineColor ?? this.axisLineColor,
  gridLineColor: gridLineColor ?? this.gridLineColor,
  gridLineOpacity: gridLineOpacity ?? this.gridLineOpacity,
  axisTitleStyle: axisTitleStyle ?? this.axisTitleStyle,
  legendRowPadding: legendRowPadding ?? this.legendRowPadding,
  plotPadding: plotPadding ?? this.plotPadding,
  dimmedOpacity: dimmedOpacity ?? this.dimmedOpacity,
  tooltipBackgroundColor:
      tooltipBackgroundColor ?? this.tooltipBackgroundColor,
  tooltipBorderRadius: tooltipBorderRadius ?? this.tooltipBorderRadius,
);