copyWith method

KLineOverlayStyle copyWith({
  1. Color? priceLineColor,
  2. double? priceLineStrokeWidth,
  3. TextStyle? priceLineTextStyle,
  4. Color? priceLineLabelBackgroundColor,
  5. EdgeInsets? priceLineLabelPadding,
  6. double? priceLineLabelBorderRadius,
  7. Color? zoneColor,
  8. double? zoneOpacity,
  9. TextStyle? zoneTextStyle,
  10. Color? buyMarkerColor,
  11. Color? sellMarkerColor,
  12. Color? customMarkerColor,
  13. Color? markerTextColor,
  14. double? markerRadius,
  15. TextStyle? markerTextStyle,
  16. Color? verticalLineColor,
  17. double? verticalLineStrokeWidth,
  18. TextStyle? verticalLineTextStyle,
})

Returns a copy with selected values replaced.

Implementation

KLineOverlayStyle copyWith({
  Color? priceLineColor,
  double? priceLineStrokeWidth,
  TextStyle? priceLineTextStyle,
  Color? priceLineLabelBackgroundColor,
  EdgeInsets? priceLineLabelPadding,
  double? priceLineLabelBorderRadius,
  Color? zoneColor,
  double? zoneOpacity,
  TextStyle? zoneTextStyle,
  Color? buyMarkerColor,
  Color? sellMarkerColor,
  Color? customMarkerColor,
  Color? markerTextColor,
  double? markerRadius,
  TextStyle? markerTextStyle,
  Color? verticalLineColor,
  double? verticalLineStrokeWidth,
  TextStyle? verticalLineTextStyle,
}) {
  return KLineOverlayStyle(
    priceLineColor: priceLineColor ?? this.priceLineColor,
    priceLineStrokeWidth: priceLineStrokeWidth ?? this.priceLineStrokeWidth,
    priceLineTextStyle: priceLineTextStyle ?? this.priceLineTextStyle,
    priceLineLabelBackgroundColor:
        priceLineLabelBackgroundColor ?? this.priceLineLabelBackgroundColor,
    priceLineLabelPadding:
        priceLineLabelPadding ?? this.priceLineLabelPadding,
    priceLineLabelBorderRadius:
        priceLineLabelBorderRadius ?? this.priceLineLabelBorderRadius,
    zoneColor: zoneColor ?? this.zoneColor,
    zoneOpacity: zoneOpacity ?? this.zoneOpacity,
    zoneTextStyle: zoneTextStyle ?? this.zoneTextStyle,
    buyMarkerColor: buyMarkerColor ?? this.buyMarkerColor,
    sellMarkerColor: sellMarkerColor ?? this.sellMarkerColor,
    customMarkerColor: customMarkerColor ?? this.customMarkerColor,
    markerTextColor: markerTextColor ?? this.markerTextColor,
    markerRadius: markerRadius ?? this.markerRadius,
    markerTextStyle: markerTextStyle ?? this.markerTextStyle,
    verticalLineColor: verticalLineColor ?? this.verticalLineColor,
    verticalLineStrokeWidth:
        verticalLineStrokeWidth ?? this.verticalLineStrokeWidth,
    verticalLineTextStyle:
        verticalLineTextStyle ?? this.verticalLineTextStyle,
  );
}