copyWith method

SeriesCalloutConfig copyWith({
  1. bool? enabled,
  2. bool? showByDefault,
  3. SeriesCalloutSide? side,
  4. SeriesCalloutLanePlacement? lanePlacement,
  5. SeriesCalloutAnchor? anchor,
  6. double? anchorX,
  7. SeriesCalloutConnector? connector,
  8. SeriesCalloutPacking? packing,
  9. double? laneWidth,
  10. double? inset,
  11. double? minimumGap,
  12. int? maximumVisible,
  13. Duration? collisionFadeDuration,
  14. Color? connectorColor,
  15. double? connectorWidth,
  16. double? connectorOpacity,
  17. double? connectorGlow,
  18. double? anchorRadius,
  19. EdgeInsets? labelPadding,
  20. TextStyle? labelStyle,
  21. Color? backgroundColor,
  22. double? backgroundOpacity,
  23. Color? borderColor,
  24. double? borderWidth,
  25. double? borderRadius,
  26. Color? panelBackgroundColor,
  27. double? panelOpacity,
  28. Color? panelBorderColor,
  29. double? panelBorderWidth,
  30. double? panelBorderRadius,
  31. EdgeInsets? panelPadding,
  32. Map<String, SeriesCalloutSpec>? series,
  33. bool clearAnchorX = false,
  34. bool clearConnectorColor = false,
  35. bool clearBackgroundColor = false,
  36. bool clearBorderColor = false,
  37. bool clearPanelBackgroundColor = false,
  38. bool clearPanelBorderColor = false,
})

Implementation

SeriesCalloutConfig copyWith({
  bool? enabled,
  bool? showByDefault,
  SeriesCalloutSide? side,
  SeriesCalloutLanePlacement? lanePlacement,
  SeriesCalloutAnchor? anchor,
  double? anchorX,
  SeriesCalloutConnector? connector,
  SeriesCalloutPacking? packing,
  double? laneWidth,
  double? inset,
  double? minimumGap,
  int? maximumVisible,
  Duration? collisionFadeDuration,
  Color? connectorColor,
  double? connectorWidth,
  double? connectorOpacity,
  double? connectorGlow,
  double? anchorRadius,
  EdgeInsets? labelPadding,
  TextStyle? labelStyle,
  Color? backgroundColor,
  double? backgroundOpacity,
  Color? borderColor,
  double? borderWidth,
  double? borderRadius,
  Color? panelBackgroundColor,
  double? panelOpacity,
  Color? panelBorderColor,
  double? panelBorderWidth,
  double? panelBorderRadius,
  EdgeInsets? panelPadding,
  Map<String, SeriesCalloutSpec>? series,
  bool clearAnchorX = false,
  bool clearConnectorColor = false,
  bool clearBackgroundColor = false,
  bool clearBorderColor = false,
  bool clearPanelBackgroundColor = false,
  bool clearPanelBorderColor = false,
}) => SeriesCalloutConfig(
  enabled: enabled ?? this.enabled,
  showByDefault: showByDefault ?? this.showByDefault,
  side: side ?? this.side,
  lanePlacement: lanePlacement ?? this.lanePlacement,
  anchor: anchor ?? this.anchor,
  anchorX: clearAnchorX ? null : (anchorX ?? this.anchorX),
  connector: connector ?? this.connector,
  packing: packing ?? this.packing,
  laneWidth: laneWidth ?? this.laneWidth,
  inset: inset ?? this.inset,
  minimumGap: minimumGap ?? this.minimumGap,
  maximumVisible: maximumVisible ?? this.maximumVisible,
  collisionFadeDuration: collisionFadeDuration ?? this.collisionFadeDuration,
  connectorColor: clearConnectorColor
      ? null
      : (connectorColor ?? this.connectorColor),
  connectorWidth: connectorWidth ?? this.connectorWidth,
  connectorOpacity: connectorOpacity ?? this.connectorOpacity,
  connectorGlow: connectorGlow ?? this.connectorGlow,
  anchorRadius: anchorRadius ?? this.anchorRadius,
  labelPadding: labelPadding ?? this.labelPadding,
  labelStyle: labelStyle ?? this.labelStyle,
  backgroundColor: clearBackgroundColor
      ? null
      : (backgroundColor ?? this.backgroundColor),
  backgroundOpacity: backgroundOpacity ?? this.backgroundOpacity,
  borderColor: clearBorderColor ? null : (borderColor ?? this.borderColor),
  borderWidth: borderWidth ?? this.borderWidth,
  borderRadius: borderRadius ?? this.borderRadius,
  panelBackgroundColor: clearPanelBackgroundColor
      ? null
      : (panelBackgroundColor ?? this.panelBackgroundColor),
  panelOpacity: panelOpacity ?? this.panelOpacity,
  panelBorderColor: clearPanelBorderColor
      ? null
      : (panelBorderColor ?? this.panelBorderColor),
  panelBorderWidth: panelBorderWidth ?? this.panelBorderWidth,
  panelBorderRadius: panelBorderRadius ?? this.panelBorderRadius,
  panelPadding: panelPadding ?? this.panelPadding,
  series: series ?? this.series,
);