setCurrentHomeTabIndex method

Future<void> setCurrentHomeTabIndex(
  1. int index
)

Persist the new tab after switching home tabs.

Implementation

Future<void> setCurrentHomeTabIndex(int index) async {
  await _preferences.put('current_home_tab_index', index);
}