merge method
Merges this object with other, returning a new object of type T.
Implementation
@override
BoxTestSpecAttribute merge(BoxTestSpecAttribute? other) {
if (other == null) return this;
return BoxTestSpecAttribute(
alignment: other.alignment ?? alignment,
animated: animated?.merge(other.animated) ?? other.animated,
clipBehavior: other.clipBehavior ?? clipBehavior,
constraints: constraints?.merge(other.constraints) ?? other.constraints,
decoration: decoration?.merge(other.decoration) ?? other.decoration,
foregroundDecoration:
foregroundDecoration?.merge(other.foregroundDecoration) ??
other.foregroundDecoration,
height: other.height ?? height,
margin: margin?.merge(other.margin) ?? other.margin,
padding: padding?.merge(other.padding) ?? other.padding,
transform: other.transform ?? transform,
transformAlignment: other.transformAlignment ?? transformAlignment,
width: other.width ?? width,
);
}