merge method

S2ChoiceConfig merge(
  1. S2ChoiceConfig? other
)

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

Implementation

S2ChoiceConfig merge(S2ChoiceConfig? other) {
  // if null return current object
  if (other == null) return this;

  return copyWith(
    type: other.type,
    layout: other.layout,
    direction: other.direction,
    spacing: other.spacing,
    runSpacing: other.runSpacing,
    padding: other.padding,
    gridDelegate: other.gridDelegate,
    gridCount: other.gridCount,
    gridSpacing: other.gridSpacing,
    useDivider: other.useDivider,
    dividerColor: other.dividerColor,
    dividerSpacing: other.dividerSpacing,
    dividerThickness: other.dividerThickness,
    overscrollColor: other.overscrollColor,
    style: other.style,
    activeStyle: other.activeStyle,
    physics: other.physics,
    pageLimit: other.pageLimit,
    delay: other.delay,
  );
}