setNonInheriteds method

void setNonInheriteds(
  1. NonInheritedPropertiesOwner other
)

Sets all non-inherited from another NonInheritedPropertiesOwner.

Implementation

void setNonInheriteds(NonInheritedPropertiesOwner other) {
  final src = other.nonInheritedValues;
  if (src != null) {
    final dest = nonInheritedValues;
    if (dest != null) {
      dest.addAll(src);
    } else {
      nonInheritedValues = [...src];
    }
  }
}