merge method

  1. @override
VariantAttribute<V> merge(
  1. covariant VariantAttribute<V>? other
)
override

Merges this object with other, returning a new object of type T.

Implementation

@override
VariantAttribute<V> merge(covariant VariantAttribute<V>? other) {
  if (other?.variant != variant) throw throwArgumentError(other);

  return VariantAttribute(variant, _style.merge(other?._style));
}