ButtonGroupItemData constructor

const ButtonGroupItemData({
  1. String? label,
  2. IconData? icon,
  3. String? tooltip,
  4. VoidCallback? onPressed,
  5. 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);