maxViewportStartRow method
Implementation
int maxViewportStartRow(TextDocument document) {
final totalRows = totalVisualRows(document);
if (height <= 0 || totalRows <= height) {
return 0;
}
return (totalRows - height).clamp(0, totalRows);
}