refreshKey static method

Key refreshKey()

Creates a unique key for forcing widget rebuild

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

Example:

BaseToolbar(
  key: BaseToolbar.refreshKey(),
  middle: _dynamicActions,
)

Implementation

static Key refreshKey() => UniqueKey();