decoration property Null safety

Decoration? decoration
final

The decoration to paint behind the child.

Use the color property to specify a simple solid color.

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

Implementation

final Decoration? decoration;