NavigationTab.badge constructor
NavigationTab.badge({})
NavigationTab.badge is a class that holds the title, page, icon, activeIcon, backgroundColor, tooltip, and meta data of a bottom navigation tab with a badge.
Implementation
NavigationTab.badge(
{required this.title,
required this.page,
this.icon,
this.activeIcon,
int? initialCount,
bool? rememberCount = true,
this.tooltip,
this.backgroundColor,
Map<String, dynamic>? meta})
: meta = {},
kind = "badge" {
this.meta.addAll({
"initialCount": initialCount,
"rememberCount": rememberCount,
});
}