NavigationDestination constructor

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

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,
  this.enabled = true,
});