merge method

  1. @override
MetaFieldConfig merge(
  1. MetaFieldConfig other
)
override

Merges these overrides with another

Implementation

@override
MetaFieldConfig merge(MetaFieldConfig other) {
  SelectOptionConfig<K, V>? otherAsSelect =
      other is SelectOptionConfig<K, V> ? other : null;

  return copyWith(
    isDisabled: other.isDisabled! || isDisabled,
    isRequired: other.isRequired! || isRequired!,
    resultFilter: otherAsSelect?.resultFilter,
    prefixIcon: otherAsSelect?.prefixIcon,
    handler: otherAsSelect?.handler?.cast(),
    viewHandler: otherAsSelect?.viewHandler,
  );
}