merge method

LinkStyle merge(
  1. LinkStyle? other
)

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,
  );
}