copyWith method

Shape copyWith({
  1. CornerSpec? corners,
  2. CornerSpec? baseCorners,
  3. BorderSide? border,
  4. BorderSide? baseBorder,
  5. BorderRadiusGeometry? radius,
  6. SurfaceLayer? padLayer,
  7. double? shapeScaleChild,
  8. double? shapeScaleMaterial,
  9. 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,
    );