merge method

Returns a new theme that matches this expander theme but with some values replaced by the non-null parameters of the given icon theme. If the given expander theme is null, simply returns this theme.

Implementation

ExpanderThemeData merge(ExpanderThemeData? other) {
  if (other == null) return this;
  return copyWith(
    color: other.color,
    type: other.type,
    position: other.position,
    modifier: other.modifier,
    animated: other.animated,
    size: other.size,
  );
}