merge method
Merges this object with other, returning a new object of type T.
Implementation
@override
StrutStyleDto merge(StrutStyleDto? other) {
if (other == null) return this;
return StrutStyleDto(
fontFamily: other.fontFamily ?? fontFamily,
fontFamilyFallback: other.fontFamilyFallback ?? fontFamilyFallback,
fontSize: other.fontSize ?? fontSize,
fontWeight: other.fontWeight ?? fontWeight,
fontStyle: other.fontStyle ?? fontStyle,
height: other.height ?? height,
leading: other.leading ?? leading,
forceStrutHeight: other.forceStrutHeight ?? forceStrutHeight,
);
}