shape property
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 between two BoxDecorations with different shapes will result in a discontinuity in the rendering. To interpolate between 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;