button method

IconButton button(
  1. String commandName
)

Implementation

IconButton button(String commandName) {
  var command = getCommand(commandName);

  return IconButton(
    tooltip: command.label ?? command.name,
    icon: Icon(command.icon),
    onPressed: command.enabled ? () {
      command.execute();
    } : null,
  );
}