merge method
Returns a new TextStyle that merges this style with other.
Non-null properties from other take priority over this style's values.
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,
);
}