decoration property

Decoration get decoration

What decoration to paint.

Commonly a BoxDecoration.

Implementation

Decoration get decoration => _decoration;
set decoration (Decoration value)

Implementation

set decoration(Decoration value) {
  if (value == decoration) {
    return;
  }
  _decoration = value;
  _painter?.dispose();
  _painter = decoration.createBoxPainter(markNeedsPaint);
  markNeedsPaint();
}