merge method

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

Merges this BoxShadowDto with other BoxShadowDto

Implementation

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

  return BoxShadowDto(
    color: color?.merge(other.color) ?? other.color,
    offset: other.offset ?? offset,
    blurRadius: other.blurRadius ?? blurRadius,
    spreadRadius: other.spreadRadius ?? spreadRadius,
  );
}