capped method
This node with its rows capped — see PluginView.capped. A node that holds no rows is its own answer.
Implementation
@override
ViewNode capped(int maxRows) => items.length <= maxRows
? this
: ViewItems(
items.take(maxRows).toList(),
truncated: truncated + items.length - maxRows,
);