merge method

StreamBoxShadow merge(
  1. StreamBoxShadow? other
)
inherited

Implementation

StreamBoxShadow merge(StreamBoxShadow? other) {
  final _this = (this as StreamBoxShadow);

  if (other == null || identical(_this, other)) {
    return _this;
  }

  if (!other.canMerge) {
    return other;
  }

  return copyWith(
    elevation1: other.elevation1,
    elevation2: other.elevation2,
    elevation3: other.elevation3,
    elevation4: other.elevation4,
  );
}