getNavigationRailDestinationListWithBadge method
Implementation
List<NavigationRailDestination> getNavigationRailDestinationListWithBadge() {
List<NavigationRailDestination> list = [];
for (var element in widget.children) {
list.add(NavigationRailDestination(
icon: NotificationBadge(
count: element.badgeCount!,
child: SizedBox(
height: 40,
width: 40,
child: element.unSelectedLeading,
),
),
selectedIcon: NotificationBadge(
count: element.badgeCount!,
child: SizedBox(
height: 40,
width: 40,
child: element.selectedLeading,
),
),
label: element.title,
));
}
return list;
}