refreshBadgeState method

void refreshBadgeState(
  1. int index
)

Implementation

void refreshBadgeState(int index) {
  setState(() {
    BadgeTab badgeTab = widget.tabs![index];
    if (badgeTab.isAutoDismiss) {
      badgeTab.badgeNum = null;
      badgeTab.badgeText = null;
      badgeTab.showRedBadge = false;
    }
  });
}