copyWith method
📋 Returns a copy of this SurfaceShape
with the given properties.
Implementation
@override
SurfaceShape copyWith({
BorderRadiusGeometry? borderRadius,
BorderSide? side,
}) =>
SurfaceShape(
cornerSpec: this.cornerSpec,
borderRadius: borderRadius ?? this.borderRadius,
border: side ?? this.side,
);