updateAppBarActions method

void updateAppBarActions(
  1. List<Widget>? appBarActions
)

Atualiza as ações do AppBar e notifica os listeners.

Use este método para adicionar ou remover botões de ação no header dinamicamente.

controller.updateAppBarActions([
  IconButton(icon: Icon(Icons.notifications), onPressed: () {}),
  IconButton(icon: Icon(Icons.search), onPressed: () {}),
]);

Implementation

void updateAppBarActions(List<Widget>? appBarActions) {
  _appBarActions = appBarActions;
  notifyListeners();
}