mergeProp method
Merges this property with another property.
Always accumulates all sources from both properties. During resolution, the behavior depends on the source types:
- Mix sources: merged using accumulation strategy
- Regular values: last value wins during resolution
Directives are merged from both properties.
Implementation
Prop<V> mergeProp(covariant Prop<V>? other) {
if (other == null) return this;
// Always accumulate all sources - no conditional logic
return Prop._(
sources: [...sources, ...other.sources],
directives: PropOps.mergeDirectives($directives, other.$directives),
);
}