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