copyWith method

LineChartStyle copyWith({
  1. LegendStyle? legendStyle,
  2. List<DatasetStyle>? datasetStyles,
  3. RangeDatasetStyle? rangeDatasetStyle,
  4. AxisStyle? topAxisStyle,
  5. AxisStyle? bottomAxisStyle,
  6. AxisStyle? leftAxisStyle,
  7. AxisStyle? rightAxisStyle,
  8. SelectionLabelStyle? selectionLabelStyle,
  9. Duration? animationDuration,
  10. HighlightStyle? highlightStyle,
})

Implementation

LineChartStyle copyWith(
    {LegendStyle? legendStyle,
    List<DatasetStyle>? datasetStyles,
    RangeDatasetStyle? rangeDatasetStyle,
    AxisStyle? topAxisStyle,
    AxisStyle? bottomAxisStyle,
    AxisStyle? leftAxisStyle,
    AxisStyle? rightAxisStyle,
    SelectionLabelStyle? selectionLabelStyle,
    Duration? animationDuration,
    HighlightStyle? highlightStyle}) {
  return LineChartStyle(
      legendStyle: legendStyle ?? this.legendStyle,
      datasetStyles: datasetStyles ?? this.datasetStyles,
      rangeDatasetStyle: rangeDatasetStyle ?? this.rangeDatasetStyle,
      animationDuration: animationDuration ?? this.animationDuration,
      bottomAxisStyle: bottomAxisStyle ?? this.bottomAxisStyle,
      leftAxisStyle: leftAxisStyle ?? this.leftAxisStyle,
      rightAxisStyle: rightAxisStyle ?? this.rightAxisStyle,
      topAxisStyle: topAxisStyle ?? this.topAxisStyle,
      selectionLabelStyle: selectionLabelStyle ?? this.selectionLabelStyle,
      highlightStyle: highlightStyle ?? this.highlightStyle);
}