merge method

Returns a new chart behavior that is a combination of this behavior and the given other behavior.

Implementation

ChartBehavior merge(ChartBehavior? other) {
  if (other == null) return this;

  return ChartBehavior(
    tooltip: other.tooltip ?? tooltip,
  );
}