merge method

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

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

Implementation

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

  return copyWith(
    values: other.values,
    query: other.query,
    page: other.page,
    skip: other.skip,
    limit: other.limit,
  );
}