merge method

PickerConfig merge(
  1. PickerConfig? other
)

Implementation

PickerConfig merge(PickerConfig? other) {
  if (other == null) return this;
  return copyWith(
    backgroundColor: other._backgroundColor,
    cancelTextStyle: cancelTextStyle.merge(other._cancelTextStyle),
    confirmTextStyle: confirmTextStyle.merge(other._confirmTextStyle),
    titleTextStyle: titleTextStyle.merge(other._titleTextStyle),
    pickerHeight: other._pickerHeight,
    titleHeight: other._titleHeight,
    itemHeight: other._itemHeight,
    itemTextStyle: itemTextStyle.merge(other._itemTextStyle),
    itemTextSelectedStyle:
        itemTextSelectedStyle.merge(other._itemTextSelectedStyle),
    dividerColor: other._dividerColor,
    cornerRadius: other._cornerRadius,
  );
}