copyWith method
Shape
copyWith({
- CornerSpec? corners,
- CornerSpec? baseCorners,
- BorderSide? border,
- BorderSide? baseBorder,
- BorderRadiusGeometry? radius,
- SurfaceLayer? padLayer,
- double? shapeScaleChild,
- double? shapeScaleMaterial,
- double? shapeScaleBase,
📋 Returns a copy of this Shape
with the given properties.
Implementation
Shape copyWith({
CornerSpec? corners,
CornerSpec? baseCorners,
BorderSide? border,
BorderSide? baseBorder,
BorderRadiusGeometry? radius,
SurfaceLayer? padLayer,
double? shapeScaleChild,
double? shapeScaleMaterial,
double? shapeScaleBase,
}) =>
Shape(
corners: corners ?? this.corners,
baseCorners: corners ?? this.baseCorners,
border: border ?? this.border,
baseBorder: baseBorder ?? this.baseBorder,
radius: radius ?? this.radius,
padLayer: padLayer ?? this.padLayer,
shapeScaleChild: shapeScaleChild ?? this.shapeScaleChild,
shapeScaleMaterial: shapeScaleMaterial ?? this.shapeScaleMaterial,
shapeScaleBase: shapeScaleBase ?? this.shapeScaleBase,
);