ButtonGroupItemData constructor
const
ButtonGroupItemData({
- String? label,
- IconData? icon,
- String? tooltip,
- VoidCallback? onPressed,
- bool autofocus = false,
Implementation
const ButtonGroupItemData({
this.label,
this.icon,
String? tooltip,
this.onPressed,
this.autofocus = false,
}) : tooltip = tooltip ?? label,
assert(label != null || icon != null);