merge method

WxAnchorStyle merge(
  1. WxAnchorStyle? other
)

Creates a copy of this WxAnchorStyle but with the given fields replaced with the new values.

Implementation

WxAnchorStyle merge(WxAnchorStyle? other) {
  // if null return current object
  if (other == null) return this;

  return copyWith(
    margin: other.margin,
    padding: other.padding,
    scale: other.scale,
    opacity: other.opacity,
    overlayShape: other.overlayShape,
    overlayColor: other.overlayColor,
    overlayOpacity: other.overlayOpacity,
    overlayExtent: other.overlayExtent,
    textColor: other.textColor,
    textStyle: other.textStyle,
    textAlign: other.textAlign,
    iconColor: other.iconColor,
    iconOpacity: other.iconOpacity,
    iconSize: other.iconSize,
  );
}