IconTab constructor
const
IconTab({
- Key? key,
- required IconData icon,
- IconData? selectedIcon,
- String? label,
- 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});