merge method
Returns a new TextStyle that merges this style with other.
Color properties from other take priority when non-null.
Boolean properties use union semantics: true from either style
is preserved in the result.
Implementation
TextStyle merge(TextStyle? other) {
if (other == null) return this;
return TextStyle(
color: other.color ?? color,
backgroundColor: other.backgroundColor ?? backgroundColor,
bold: other.bold || bold,
italic: other.italic || italic,
underline: other.underline || underline,
dim: other.dim || dim,
fontFamily: other.fontFamily,
);
}