Destination constructor

const Destination(
  1. String label,
  2. Widget icon,
  3. Widget selectedIcon
)

Creates a new navigation destination.

  • label is the text displayed next to or below the icon
  • icon is shown in the unselected state
  • selectedIcon is shown in the selected state

Implementation

const Destination(
  this.label,
  this.icon,
  this.selectedIcon,
);