BarItem constructor

BarItem({
  1. required Widget icon,
  2. required String label,
})

Creates a BarItem with the given icon and label.

Implementation

BarItem({required this.icon, required this.label});