merge method
Merges the current TouchRippleAnimation with another, using the provided animation values if available. If the other behavior is null or lacks specific values, defaults to the current animation values.
Implementation
TouchRippleAnimation merge(TouchRippleAnimation? other) {
if (other == null) return this;
return TouchRippleAnimation(
fadeInDuration: other.fadeInDuration ?? fadeInDuration,
fadeInCurve: other.fadeInCurve ?? fadeInCurve,
fadeOutDuration: other.fadeOutDuration ?? fadeOutDuration,
fadeOutCurve: other.fadeOutCurve ?? fadeOutCurve
);
}