operator + method

MetadataOverrides operator +(
  1. MetadataOverrides? other
)

Implementation

MetadataOverrides operator +(MetadataOverrides? other) {
  if (other == null) return this;
  return MetadataOverrides(
      label: other.label ?? this.label,
      addLabel: other.addLabel ?? this.addLabel,
      editLabel: other.editLabel ?? this.editLabel,
      category: other.category ?? this.category,
      isDisabled: other.isDisabled ?? this.isDisabled,
      pluralLabel: other.pluralLabel ?? this.pluralLabel,
      formConfig: other.formConfig.mergeWith(this.formConfig),
      labels: {
        ...labels,
        ...other.labels,
      },
      placeholders: {
        ...placeholders,
        ...other.placeholders,
      },
      metaDateFormatters: {
        ...?metaDateFormatters,
        ...?other.metaDateFormatters,
      },
      sortOrder: other.sortOrder.ifEmpty(() => this.sortOrder).toList(),
      ignoredPaths: {
        ...?ignoredPaths,
        ...?other.ignoredPaths,
      });
}