NavigationDestination constructor Null safety

const NavigationDestination(
  1. {Key? key,
  2. required Widget icon,
  3. Widget? selectedIcon,
  4. required String label,
  5. String? tooltip}
)

Creates a navigation bar destination with an icon and a label, to be used in the NavigationBar.destinations.

Implementation

const NavigationDestination({
  super.key,
  required this.icon,
  this.selectedIcon,
  required this.label,
  this.tooltip,
});