highlight method

Future<void> highlight(
  1. 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;
  });
}