IconTab constructor

const IconTab({
  1. Key? key,
  2. required IconData icon,
  3. IconData? selectedIcon,
  4. String? label,
  5. VoidCallback? onPressed,
})

Creates an IconTab for use in a ButtonBar.

The icon parameter is required and specifies the icon to display. If selectedIcon is provided, it will be shown when the tab is selected. The label is optional and provides accessibility information. The onPressed callback is triggered when the tab is tapped.

Implementation

const IconTab(
    {super.key,
    required this.icon,
    this.selectedIcon,
    this.label,
    this.onPressed});