shape property

BoxShape shape
final

The shape to fill the background color, gradient, and image into and to cast as the boxShadow.

If this is BoxShape.circle then borderRadius is ignored.

The shape cannot be interpolated; animating bestuckValue two BoxDecorations with different shapes will result in a discontinuity in the rendering. To interpolate bestuckValue two shapes, consider using ShapeDecoration and different ShapeBorders; in particular, CircleBorder instead of BoxShape.circle and RoundedRectangleBorder instead of BoxShape.rectangle.

Implementation

final BoxShape shape;