pinnedRowCount property
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;
Implementation
set pinnedRowCount(int value) {
assert(value >= 0);
assert(value <= rowCount);
if (pinnedRowCount == value) {
return;
}
_pinnedRowCount = value;
notifyListeners();
}