copyWith method Null safety

BoxShadowAttribute copyWith(
  1. BoxShadowAttribute other
)

Implementation

BoxShadowAttribute copyWith(BoxShadowAttribute other) {
  return BoxShadowAttribute(
    color: other.color ?? color,
    offset: other.offset ?? offset,
    blurRadius: other.blurRadius ?? blurRadius,
    spreadRadius: other.spreadRadius ?? spreadRadius,
  );
}