highlightPrevious method

void highlightPrevious()

Implementation

void highlightPrevious() {
  final items = value.filteredItems;
  if (items.isEmpty) return;
  final current = value.highlightedIndex;
  final prev = (current == null || current == 0)
      ? items.length - 1
      : current - 1;
  value = value.copyWith(highlightedIndex: prev);
  _overlay?.markNeedsBuild();
}