CommandBarButton constructor

const CommandBarButton({
  1. required VoidCallback? onPressed,
  2. Key? key,
  3. Widget? icon,
  4. Widget? label,
  5. Widget? subtitle,
  6. Widget? trailing,
  7. VoidCallback? onLongPress,
  8. FocusNode? focusNode,
  9. bool autofocus = false,
  10. String? tooltip,
  11. bool closeAfterClick = true,
})

Creates a command bar button

Implementation

const CommandBarButton({
  required this.onPressed,
  super.key,
  this.icon,
  this.label,
  this.subtitle,
  this.trailing,
  this.onLongPress,
  this.focusNode,
  this.autofocus = false,
  this.tooltip,
  this.closeAfterClick = true,
});