merge method
Merges this object with other, returning a new object of type T.
Implementation
@override
TextSpecAttribute merge(TextSpecAttribute? other) {
return other == null
? this
: TextSpecAttribute(
overflow: other.overflow ?? overflow,
strutStyle: strutStyle?.merge(other.strutStyle) ?? other.strutStyle,
textAlign: other.textAlign ?? textAlign,
textScaleFactor: other.textScaleFactor ?? textScaleFactor,
maxLines: other.maxLines ?? maxLines,
style: style?.merge(other.style) ?? other.style,
textWidthBasis: other.textWidthBasis ?? textWidthBasis,
textHeightBehavior: other.textHeightBehavior ?? textHeightBehavior,
textDirection: other.textDirection ?? textDirection,
softWrap: other.softWrap ?? softWrap,
directive: directive?.merge(other.directive) ?? other.directive,
animated: other.animated ?? animated,
);
}