merge method

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

Implementation

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

  return copyWith(
    spacing: other.spacing,
    margin: other.margin,
    align: other.align,
    color: other.color,
    overflow: other.overflow,
    softWrap: other.softWrap,
    widthBasis: other.widthBasis,
    titleStyle: other.titleStyle,
    titleColor: other.titleColor,
    titleWeight: other.titleWeight,
    titleSize: other.titleSize,
    titleMaxLines: other.titleMaxLines,
    subtitleStyle: other.subtitleStyle,
    subtitleColor: other.subtitleColor,
    subtitleWeight: other.subtitleWeight,
    subtitleSize: other.subtitleSize,
    subtitleMaxLines: other.subtitleMaxLines,
  );
}