highlight method
- ProfileTab? tab
Highlights the provided tab
.
Implementation
Future<void> highlight(ProfileTab? tab) async {
highlightIndex.value = tab?.index;
_highlightTimer?.cancel();
_highlightTimer = Timer(_highlightTimeout, () {
highlightIndex.value = null;
});
}