CommandButton constructor

CommandButton({
  1. Key? key,
  2. required CommandDescriptor command,
  3. String? label,
  4. IconData? icon,
  5. List? args,
  6. bool iconOnly = true,
})

Implementation

CommandButton({
  super.key,
  required this.command,
  String? label,
  IconData? icon,
  this.args,
  this.iconOnly=true
}) {
  this.label = label ?? command.label;
  this.icon = icon ?? command.icon;
}