merge method

S2Group merge(
  1. S2Group? other
)

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

Implementation

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

  return copyWith(
    name: other.name,
    choices: other.choices,
    headerStyle: other.headerStyle,
  );
}