merge method

S2MultiBuilder<T> merge(
  1. S2MultiBuilder<T>? other
)

Creates a copy of this S2MultiBuilder but with the given fields replaced with the new values.

Implementation

S2MultiBuilder<T> merge(S2MultiBuilder<T>? other) {
  // if null return current object
  if (other == null) return this;

  return S2MultiBuilder<T>(
    tile: other.tile,
    modal: other.modal,
    modalHeader: other.modalHeader,
    modalFilter: other.modalFilter,
    modalFilterToggle: other.modalFilterToggle,
    modalActions: other.modalActions,
    modalConfirm: other.modalConfirm,
    modalDivider: other.modalDivider,
    modalFooter: other.modalFooter,
    group: other.group,
    groupHeader: other.groupHeader,
    choice: other.choice,
    choiceTitle: other.choiceTitle,
    choiceSubtitle: other.choiceSubtitle,
    choiceSecondary: other.choiceSecondary,
    choiceEmpty: other.choiceEmpty,
    choiceDivider: other.choiceDivider,
    // choiceProgressBuilder: other.choiceProgressBuilder,
    // choicePagerBuilder: other.choicePagerBuilder,
  );
}