CommandBarButton constructor
const
CommandBarButton({
- Key? key,
- Widget? icon,
- Widget? label,
- Widget? subtitle,
- Widget? trailing,
- required VoidCallback? onPressed,
- VoidCallback? onLongPress,
- FocusNode? focusNode,
- 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,
});