decoration property Null safety

Decoration? decoration
final

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.

Implementation

final Decoration? decoration;