merge method

ScriptStyle merge(
  1. ScriptStyle? other
)

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

Implementation

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