decoration property

Decoration decoration

The decoration to paint behind the child.

A shorthand for specifying just a solid color is available in the constructor: set the color argument instead of the decoration argument.

The child is not clipped to the decoration. To clip a child to the shape of a particular ShapeDecoration, consider using a ClipPath widget.


final Decoration decoration