DynamicNavBarButton constructor

const DynamicNavBarButton({
  1. Key? key,
  2. required ValueChanged<int> onTap,
  3. required double position,
  4. required int length,
  5. required int index,
  6. required bool showForeGround,
  7. required IconData icon,
  8. required String title,
  9. required int currentIndex,
  10. required Color? selectedIconColor,
  11. required double? selectedIconSize,
  12. required double? selectedTextSize,
  13. required Color? selectedTextColor,
  14. required Color? unselectedIconColor,
  15. required double? unselectedIconSize,
  16. required double? unselectedTextSize,
  17. required Color? unselectedTextColor,
  18. required Widget? customSelectedItemDecor,
  19. required Widget? customUnSelectedItemDecor,
  20. required List<Map<String, dynamic>>? badgeData,
  21. required Color? badgeColor,
  22. required TextStyle? badgeTextStyle,
  23. required double? badgeCircleRadius,
  24. required double? badgeTopPosition,
  25. required double? badgeBottomPosition,
  26. required double? badgeLeftPosition,
  27. required double? badgeRightPosition,
})

Implementation

const DynamicNavBarButton({
  Key? key,
  required this.onTap,
  required this.position,
  required this.length,
  required this.index,
  required this.showForeGround,
  required this.icon,
  required this.title,
  required this.currentIndex,
  required this.selectedIconColor,
  required this.selectedIconSize,
  required this.selectedTextSize,
  required this.selectedTextColor,
  required this.unselectedIconColor,
  required this.unselectedIconSize,
  required this.unselectedTextSize,
  required this.unselectedTextColor,
  required this.customSelectedItemDecor,
  required this.customUnSelectedItemDecor,
  required this.badgeData,
  required this.badgeColor,
  required this.badgeTextStyle,
  required this.badgeCircleRadius,
  required this.badgeTopPosition,
  required this.badgeBottomPosition,
  required this.badgeLeftPosition,
  required this.badgeRightPosition,
}) : super(key: key);