pinnedRowCount property

  1. @override
int pinnedRowCount
override

The number of rows that are permanently shown on the leading horizontal edge of the viewport.

If scrolling is enabled, other rows will scroll underneath the pinned rows.

Just like for regular rows, buildRow will be consulted for additional information about the pinned row. The indices of pinned rows start at zero and go to pinnedRowCount - 1.

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

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

Implementation

@override
int get pinnedRowCount => _pinnedRowCount;
void pinnedRowCount=(int value)

Implementation

set pinnedRowCount(int value) {
  assert(value >= 0);
  assert(rowCount == null || value <= rowCount!);
  if (pinnedRowCount == value) {
    return;
  }
  _pinnedRowCount = value;
  notifyListeners();
}