copyWith method

ChartInteractionOptions copyWith({
  1. bool? showTooltip,
  2. bool? showActiveElement,
})

Implementation

ChartInteractionOptions copyWith({
  bool? showTooltip,
  bool? showActiveElement,
}) {
  return ChartInteractionOptions(
    showTooltip: showTooltip ?? this.showTooltip,
    showActiveElement: showActiveElement ?? this.showActiveElement,
  );
}