rowDecorations property

List<Decoration> rowDecorations

The decorations to use for each row of the table.

Row decorations fill the horizontal and vertical extent of each row in the table, unlike decorations for individual cells, which might not fill either.

Implementation

List<Decoration> get rowDecorations => List<Decoration>.unmodifiable(_rowDecorations ?? const <Decoration>[]);
void rowDecorations=(List<Decoration?>? value)

Implementation

set rowDecorations(List<Decoration?>? value) {
  if (_rowDecorations == value) {
    return;
  }
  _rowDecorations = value;
  if (_rowDecorationPainters != null) {
    for (final BoxPainter? painter in _rowDecorationPainters!) {
      painter?.dispose();
    }
  }
  _rowDecorationPainters = _rowDecorations != null ? List<BoxPainter?>.filled(_rowDecorations!.length, null) : null;
}