merge method

Implementation

ActionSheetConfig merge(ActionSheetConfig? other) {
  if (other == null) return this;
  return copyWith(
    titleStyle: titleStyle.merge(other._titleStyle),
    itemTitleStyle: itemTitleStyle.merge(other._itemTitleStyle),
    itemTitleStyleLink: itemTitleStyleLink.merge(other._itemTitleStyleLink),
    itemTitleStyleAlert:
        itemTitleStyleAlert.merge(other._itemTitleStyleAlert),
    itemDescStyle: itemDescStyle.merge(other._itemDescStyle),
    itemDescStyleLink: itemDescStyleLink.merge(other._itemDescStyleLink),
    itemDescStyleAlert: itemDescStyleAlert.merge(other._itemDescStyleAlert),
    cancelStyle: cancelStyle.merge(other._cancelStyle),
    topRadius: other._topRadius,
    contentPadding: other._contentPadding,
    titlePadding: other._titlePadding,
  );
}