# addPropertyValue method

MutablePropertyValues addPropertyValue(

1. PropertyValue pv

)

Add a PropertyValue object, replacing any existing one for the same property.

`pv`: The PropertyValue to add Returns this instance for method chaining

Example:

    final pv = PropertyValue('timeout', 30);
    propertyValues.addPropertyValue(pv);

## Implementation

    MutablePropertyValues addPropertyValue(PropertyValue pv) {
      for (int i = 0; i < _values.length; i++) {
        final currentPv = _values[i];
        if (currentPv.getName() == pv.getName()) {
          _values[i] = _mergeIfRequired(pv, currentPv);
          return this;
        }
      }
      _values.add(pv);
      return this;
    }