CommandBarButton constructor

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

Creates a command bar button

Implementation

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