copyWith method
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,
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,
);
}