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