visible property

List<String> get visible

The visible window of matches after applying scroll.

Implementation

List<String> get visible {
  final all = matches;
  final start = _firstVisible.clamp(0, all.isEmpty ? 0 : all.length);
  final end = (start + scroll).clamp(0, all.length);
  return all.sublist(start, end);
}