merge method
Creates a copy of this TileStyle but with the given fields replaced with the new values.
Implementation
TileStyle merge(TileStyle? other) {
// if null return current object
if (other == null) return this;
return copyWith(
direction: other.direction,
margin: other.margin,
spacing: other.spacing,
spacingEnforced: other.spacingEnforced,
crossAxisAlignment: other.crossAxisAlignment,
mainAxisAlignment: other.mainAxisAlignment,
mainAxisExpanded: other.mainAxisExpanded,
childExpanded: other.childExpanded,
);
}