refreshKey static method

Key refreshKey()

Creates a unique key for forcing widget rebuild

Use this when you need to force the navigation bar to rebuild, for example when actions are updated dynamically.

Example:

BaseNavigationBar(
  key: BaseNavigationBar.refreshKey(),
  trailing: _dynamicActions,
)

Implementation

static Key refreshKey() => UniqueKey();