merge method

ChartAnimation merge(
  1. ChartAnimation? other
)

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

Implementation

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

  return ChartAnimation(
    fadeDuration: other.fadeDuration ?? fadeDuration,
    fadeCurve: other.fadeCurve ?? fadeCurve,
    transitionDuration: other.transitionDuration ?? transitionDuration,
    transitionCurve: other.transitionCurve ?? transitionCurve,
    hoverDuration: hoverDuration,
    hoverCurve: hoverCurve
  );
}