merge method

  1. @override
IconSpecAttribute merge(
  1. covariant IconSpecAttribute? other
)
override

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

Implementation

@override
IconSpecAttribute merge(covariant IconSpecAttribute? other) {
  if (other == null) return this;

  return IconSpecAttribute(
    size: other.size ?? size,
    color: color?.merge(other.color) ?? other.color,
    weight: other.weight ?? weight,
    grade: other.grade ?? grade,
    opticalSize: other.opticalSize ?? opticalSize,
    shadows: other.shadows ?? shadows,
    fill: other.fill ?? fill,
    textDirection: other.textDirection ?? textDirection,
    applyTextScaling: other.applyTextScaling ?? applyTextScaling,
    animated: other.animated ?? animated,
  );
}