updateBadgeCount method

dynamic updateBadgeCount({
  1. required int tab,
  2. required int count,
})

Update the badge count E.g. MyNavigationHub.updateBadgeCount(tab: 0, count: 2);

Implementation

updateBadgeCount({required int tab, required int count}) {
  updateState(_navigationTabStateName(tab), data: count);
}