copyWith method
KLineChartStyle
copyWith({
- Color? backgroundColor,
- Color? gridLineColor,
- double? gridLineWidth,
- TextStyle? rulerTextStyle,
- Color? highLowLineColor,
- double? highLowLineWidth,
- TextStyle? highLowTextStyle,
- Color? currentPriceLineColor,
- double? currentPriceLineWidth,
- Color? currentPriceBackgroundColor,
- TextStyle? currentPriceTextStyle,
- Color? timeLineColor,
- double? timeLineWidth,
- Color? timeLineFillColor,
Returns a copy with selected values replaced.
Implementation
KLineChartStyle copyWith({
Color? backgroundColor,
Color? gridLineColor,
double? gridLineWidth,
TextStyle? rulerTextStyle,
Color? highLowLineColor,
double? highLowLineWidth,
TextStyle? highLowTextStyle,
Color? currentPriceLineColor,
double? currentPriceLineWidth,
Color? currentPriceBackgroundColor,
TextStyle? currentPriceTextStyle,
Color? timeLineColor,
double? timeLineWidth,
Color? timeLineFillColor,
}) {
return KLineChartStyle(
backgroundColor: backgroundColor ?? this.backgroundColor,
gridLineColor: gridLineColor ?? this.gridLineColor,
gridLineWidth: gridLineWidth ?? this.gridLineWidth,
rulerTextStyle: rulerTextStyle ?? this.rulerTextStyle,
highLowLineColor: highLowLineColor ?? this.highLowLineColor,
highLowLineWidth: highLowLineWidth ?? this.highLowLineWidth,
highLowTextStyle: highLowTextStyle ?? this.highLowTextStyle,
currentPriceLineColor:
currentPriceLineColor ?? this.currentPriceLineColor,
currentPriceLineWidth:
currentPriceLineWidth ?? this.currentPriceLineWidth,
currentPriceBackgroundColor:
currentPriceBackgroundColor ?? this.currentPriceBackgroundColor,
currentPriceTextStyle:
currentPriceTextStyle ?? this.currentPriceTextStyle,
timeLineColor: timeLineColor ?? this.timeLineColor,
timeLineWidth: timeLineWidth ?? this.timeLineWidth,
timeLineFillColor: timeLineFillColor ?? this.timeLineFillColor,
);
}