merge method
Returns a new S2ModalHeaderStyle that is
a combination of this object and the given other
style.
Implementation
S2ModalHeaderStyle merge(S2ModalHeaderStyle? other) {
// if null return current object
if (other == null) return this;
return copyWith(
shape: other.shape,
elevation: other.elevation,
backgroundColor: other.backgroundColor,
brightness: other.brightness,
useLeading: other.useLeading,
centerTitle: other.centerTitle,
textStyle: other.textStyle,
errorStyle: other.errorStyle,
iconTheme: other.iconTheme,
actionsIconTheme: other.actionsIconTheme,
);
}