merge method

ListTileStyle merge(
  1. ListTileStyle? other
)

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

Implementation

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

  return copyWith(
    margin: other.margin,
    spacing: other.spacing,
    spacingEnforced: other.spacingEnforced,
    crossAxisAlignment: other.crossAxisAlignment,
    mainAxisAlignment: other.mainAxisAlignment,
    mainAxisExpanded: other.mainAxisExpanded,
    childExpanded: other.childExpanded,
    textAlign: other.textAlign,
    textMargin: other.textMargin,
    textSpacing: other.textSpacing,
  );
}