merge method
Returns a new S2ModalStyle that is
a combination of this object and the given other
style.
Implementation
S2ModalStyle merge(S2ModalStyle? other) {
// if null return current object
if (other == null) return this;
return copyWith(
shape: other.shape,
elevation: other.elevation,
backgroundColor: other.backgroundColor,
clipBehavior: other.clipBehavior,
);
}