merge method

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

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

Implementation

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

  return FlexSpecAttribute(
    direction: other.direction ?? direction,
    mainAxisAlignment: other.mainAxisAlignment ?? mainAxisAlignment,
    crossAxisAlignment: other.crossAxisAlignment ?? crossAxisAlignment,
    mainAxisSize: other.mainAxisSize ?? mainAxisSize,
    verticalDirection: other.verticalDirection ?? verticalDirection,
    textDirection: other.textDirection ?? textDirection,
    textBaseline: other.textBaseline ?? textBaseline,
    clipBehavior: other.clipBehavior ?? clipBehavior,
    gap: other.gap ?? gap,
    animated: other.animated ?? animated,
  );
}