merge method

Implementation

StreamSplitButtonStyle merge(StreamSplitButtonStyle? other) {
  final _this = (this as StreamSplitButtonStyle);

  if (other == null || identical(_this, other)) {
    return _this;
  }

  if (!other.canMerge) {
    return other;
  }

  return copyWith(
    buttonStyle:
        _this.buttonStyle?.merge(other.buttonStyle) ?? other.buttonStyle,
    separatorColor: other.separatorColor,
    separatorThickness: other.separatorThickness,
    separatorHeight: other.separatorHeight,
  );
}