merge method
- AnimationStyle? other
Creates a new AnimationStyle that is a combination of this animation style
and the given other animation style.
If other is non-null, its non-null properties are used to override the
corresponding properties of this style.
Returns this animation style if other is null.
Implementation
AnimationStyle merge(AnimationStyle? other) {
if (other == null) {
return this;
}
return copyWith(
curve: other.curve,
duration: other.duration,
reverseCurve: other.reverseCurve,
reverseDuration: other.reverseDuration,
);
}