merge method

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

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

Implementation

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

  return StackSpecAttribute(
    alignment: other.alignment ?? alignment,
    fit: other.fit ?? fit,
    textDirection: other.textDirection ?? textDirection,
    clipBehavior: other.clipBehavior ?? clipBehavior,
    animated: other.animated ?? animated,
  );
}