The shape to use when rendering a BoxDecoration.


circle BoxShape

A circle centered in the middle of the box into which the BoxDecoration is painted. The diameter of the circle is the shortest dimension of the box, either the width or the height, such that the circle touches the edges of the box.

const BoxShape(1)
rectangle BoxShape

An axis-aligned, 2D rectangle. May have rounded corners (described by a BorderRadius). The edges of the rectangle will match the edges of the box into which the BoxDecoration is painted.

const BoxShape(0)
values List<BoxShape>

A constant List of the values in this enum, in order of their declaration.

const List<BoxShape>


index int
hashCode int

The hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited


operator ==(other) bool

The equality operator.



noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

toString() String

Returns a string representation of this object.