copyWith method
LineChartStyle
copyWith({
- LegendStyle? legendStyle,
- List<
DatasetStyle> ? datasetStyles, - RangeDatasetStyle? rangeDatasetStyle,
- AxisStyle? topAxisStyle,
- AxisStyle? bottomAxisStyle,
- AxisStyle? leftAxisStyle,
- AxisStyle? rightAxisStyle,
- SelectionLabelStyle? selectionLabelStyle,
- Duration? animationDuration,
- 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);
}