merge method

FilterOption merge(
  1. FilterOption? other
)

Returns a new FilterOption object with the properties of this object merged with those of another FilterOption.

Any non-null property in the provided other object will replace the corresponding property in this object.

  • other: An optional parameter. The FilterOption to merge with this one.

Implementation

FilterOption merge(FilterOption? other) {
  return copyWith(
    needTitle: other?.needTitle,
    sizeConstraint: other?.sizeConstraint,
    durationConstraint: other?.durationConstraint,
  );
}