merge method
Merges the current TouchRippleBehavior with another, using the provided behavior values if available. If the other behavior is null or lacks specific values, defaults to the current behavior values.
Implementation
TouchRippleBehavior merge(TouchRippleBehavior? other) {
if (other == null) return this;
return TouchRippleBehavior(
spreadDuration: other.spreadDuration ?? spreadDuration,
spreadCurve: other.spreadCurve ?? spreadCurve,
fadeInDuration: other.fadeInDuration ?? fadeInDuration,
fadeInCurve: other.fadeInCurve ?? fadeInCurve,
fadeOutDuration: other.fadeOutDuration ?? fadeOutDuration,
fadeOutCurve: other.fadeOutCurve ?? fadeOutCurve,
cancelDuration: other.cancelDuration ?? cancelDuration,
cancelCurve: other.cancelCurve ?? cancelCurve,
lowerPercent: other.lowerPercent ?? lowerPercent,
upperPercent: other.upperPercent ?? upperPercent,
fadeLowerPercent: other.fadeLowerPercent ?? fadeLowerPercent,
fadeUpperPercent: other.fadeUpperPercent ?? fadeUpperPercent,
eventCallBackableMinPercent: other.eventCallBackableMinPercent ?? eventCallBackableMinPercent,
onlyMainButton: other.onlyMainButton ?? onlyMainButton
);
}