merge method

HrStyle merge(
  1. HrStyle? other
)

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

Implementation

HrStyle merge(HrStyle? other) {
  if (other == null) {
    return this;
  }
  return HrStyle(
    thickness: thickness ?? other.thickness,
    color: color ?? other.color,
    padding: padding ?? other.padding,
  );
}