merge method
Implementation
ButtonStyle? merge(ButtonStyle? other) {
if (other == null) return this;
return ButtonStyle(
textStyle: other.textStyle ?? textStyle,
backgroundColor: other.backgroundColor ?? backgroundColor,
foregroundColor: other.foregroundColor ?? foregroundColor,
shadowColor: other.shadowColor ?? shadowColor,
elevation: other.elevation ?? elevation,
padding: other.padding ?? padding,
border: other.border ?? border,
shape: other.shape ?? shape,
cursor: other.cursor ?? cursor,
zFactor: other.zFactor ?? zFactor,
);
}