merge method

TextTileStyle merge(
  1. TextTileStyle? other
)

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

Implementation

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

  return copyWith(
    spacing: other.spacing,
    margin: other.margin,
    align: other.align,
  );
}