merge method
This style, with any unset field taken from other, field by field.
Implementation
LinkStyle merge(LinkStyle? other) {
if (other == null) {
return this;
}
return LinkStyle(
color: color ?? other.color,
hoverColor: hoverColor ?? other.hoverColor,
decoration: decoration ?? other.decoration,
decorationThickness: decorationThickness ?? other.decorationThickness,
fontWeight: fontWeight ?? other.fontWeight,
);
}