merge method

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

Implementation

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

  return copyWith(
    margin: other.margin,
    padding: other.padding,
    spacing: other.spacing,
    adaptiveSpacing: other.adaptiveSpacing,
    align: other.align,
    justify: other.justify,
    inline: other.inline,
    textWrap: other.textWrap,
    textAlign: other.textAlign,
    textSpacing: other.textSpacing,
    textColor: other.textColor,
    textOverflow: other.textOverflow,
    textSoftWrap: other.textSoftWrap,
    textWidthBasis: other.textWidthBasis,
    iconColor: other.iconColor,
    iconOpacity: other.iconOpacity,
    iconSize: other.iconSize,
    titleStyle: other.titleStyle,
    subtitleStyle: other.subtitleStyle,
    secondaryStyle: other.secondaryStyle,
    titleSize: other.titleSize,
    subtitleSize: other.subtitleSize,
    titleColor: other.titleColor,
    subtitleColor: other.subtitleColor,
    titleMaxLines: other.titleMaxLines,
    subtitleMaxLines: other.subtitleMaxLines,
    titleWeight: other.titleWeight,
    subtitleWeight: other.subtitleWeight,
  );
}