TableViewCell constructor

const TableViewCell({
  1. Key? key,
  2. int? rowMergeStart,
  3. int? rowMergeSpan,
  4. int? columnMergeStart,
  5. int? columnMergeSpan,
  6. bool addRepaintBoundaries = true,
  7. required Widget child,
})

Creates a widget that controls how a child of a TableView spans across multiple rows or columns.

Implementation

const TableViewCell({
  super.key,
  this.rowMergeStart,
  this.rowMergeSpan,
  this.columnMergeStart,
  this.columnMergeSpan,
  this.addRepaintBoundaries = true,
  required this.child,
})  : assert(
        (rowMergeStart == null && rowMergeSpan == null) ||
            (rowMergeStart != null && rowMergeSpan != null),
        'Row merge start and span must both be set, or both unset.',
      ),
      assert(rowMergeStart == null || rowMergeStart >= 0),
      assert(rowMergeSpan == null || rowMergeSpan > 0),
      assert(
        (columnMergeStart == null && columnMergeSpan == null) ||
            (columnMergeStart != null && columnMergeSpan != null),
        'Column merge start and span must both be set, or both unset.',
      ),
      assert(columnMergeStart == null || columnMergeStart >= 0),
      assert(columnMergeSpan == null || columnMergeSpan > 0);