merge method

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

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

Implementation

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

  return ImageTestSpecAttribute(
    alignment: other.alignment ?? alignment,
    animated: animated?.merge(other.animated) ?? other.animated,
    centerSlice: other.centerSlice ?? centerSlice,
    color: color?.merge(other.color) ?? other.color,
    colorBlendMode: other.colorBlendMode ?? colorBlendMode,
    filterQuality: other.filterQuality ?? filterQuality,
    fit: other.fit ?? fit,
    height: other.height ?? height,
    repeat: other.repeat ?? repeat,
    width: other.width ?? width,
  );
}