getVisibleRowEndIndex method
Retrieves the end index of visible row based on the specified row region.
Returns null if there are no rows available in the given region.
Implementation
int? getVisibleRowEndIndex(RowRegion rowRegion) {
if (_dataGridStateDetails != null) {
final DataGridConfiguration dataGridConfiguration =
_dataGridStateDetails!();
final ScrollAxisRegion scrollAxisRegion = _getScrollAxisRegion(rowRegion);
return dataGridConfiguration.container.scrollRows
.getVisibleLinesRange(scrollAxisRegion)
?.end;
}
return null;
}