rowCount property

  1. @override
int? rowCount
override

The number of rows that the table has content for.

The buildRow method will be called for indices smaller than the value provided here to learn more about the extent and visual appearance of a particular row. If null, the table will have an infinite number of rows, unless buildRow returns null to signify the end.

The value returned by this getter may be an estimate of the total available rows, but buildRow method must provide a valid TableSpan for all indices smaller than this integer.

The integer returned by this getter must be larger than (or equal to) the integer returned by pinnedRowCount.

If the value returned by this getter changes throughout the lifetime of the delegate object, notifyListeners must be called.

When null, the number of rows will be infinite in number, unless null is returned from TableCellBuilderDelegate.rowBuilder. The TableCellListDelegate does not support an infinite number of rows.

Implementation

@override
int? get rowCount => maxYIndex == null ? null : maxYIndex! + 1;
void rowCount=(int? value)

Implementation

set rowCount(int? value) {
  assert(value == null || pinnedRowCount <= value);
  maxYIndex = value == null ? null : value - 1;
}