highlight method
- int index
Highlights the item with the provided index
.
Implementation
void highlight(int index) {
highlighted.value = index;
_highlightTimer?.cancel();
_highlightTimer = Timer(_highlightTimeout, () {
highlighted.value = null;
});
}