merge method

HighlightStyle merge(
  1. HighlightStyle? other
)

This style, with any unset field taken from other, field by field.

Implementation

HighlightStyle merge(HighlightStyle? other) {
  if (other == null) {
    return this;
  }
  return HighlightStyle(
    backgroundColor: backgroundColor ?? other.backgroundColor,
    color: color ?? other.color,
  );
}