copyWith method
Creates a copy of this object but with the given fields replaced with the new values.
Implementation
BoxShadow copyWith({
Color? color,
Offset? offset,
double? blurRadius,
double? spreadRadius,
BlurStyle? blurStyle,
}) {
return BoxShadow(
color: color ?? this.color,
offset: offset ?? this.offset,
blurRadius: blurRadius ?? this.blurRadius,
spreadRadius: spreadRadius ?? this.spreadRadius,
blurStyle: blurStyle ?? this.blurStyle,
);
}