merge method
Applies the supplied non-null values, or replaces this style when detached.
Implementation
TextStyle merge(TextStyle? other) {
if (other == null) return this;
if (!other.inherit) return other;
return copyWith(
color: other.color,
backgroundColor: other.backgroundColor,
fontSize: other.fontSize,
fontWeight: other.fontWeight,
fontStyle: other.fontStyle,
fontFamily: other.fontFamily,
fontFamilyFallback: other.fontFamilyFallback,
letterSpacing: other.letterSpacing,
wordSpacing: other.wordSpacing,
height: other.height,
decoration: other.decoration,
decorationColor: other.decorationColor,
overflow: other.overflow,
);
}