refreshKey static method

Key refreshKey()

Creates a unique key for forcing widget rebuild

Use this when you need to force the tab bar to rebuild, for example when tabs or currentIndex are updated dynamically.

Example:

BaseTabBar(
  key: BaseTabBar.refreshKey(),
  currentIndex: _currentIndex,
  items: _dynamicTabs,
)

Implementation

static Key refreshKey() => UniqueKey();