button constructor

const button(
  1. List<Component> children, {
  2. bool autofocus = false,
  3. bool disabled = false,
  4. ButtonType? type,
  5. VoidCallback? onClick,
  6. String? id,
  7. String? classes,
  8. Styles? styles,
  9. Map<String, String>? attributes,
  10. Map<String, EventCallback>? events,
  11. Key? key,
})

The <button> HTML element is an interactive element activated by a user with a mouse, keyboard, finger, voice command, or other assistive technology. Once activated, it then performs a programmable action, such as submitting a form or opening a dialog.

Implementation

const button(
  this.children, {
  this.autofocus = false,
  this.disabled = false,
  this.type,
  this.onClick,
  this.id,
  this.classes,
  this.styles,
  this.attributes,
  this.events,
  super.key,
});