Button constructor

const Button({
  1. String? label,
  2. Widget? child,
  3. Widget? icon,
  4. Widget? trailing,
  5. void onPressed()?,
  6. ArcaneInteraction? action,
  7. ButtonVariant variant = ButtonVariant.primary,
  8. ButtonSize size = ButtonSize.medium,
  9. bool disabled = false,
  10. bool loading = false,
  11. bool fullWidth = false,
  12. Map<String, String>? attributes,
  13. String? id,
  14. ButtonType type = ButtonType.button,
  15. String? href,
  16. bool showArrow = false,
  17. ArcaneStyleData? styles,
  18. ArcaneDecoration? decoration,
  19. Key? key,
})

Implementation

const Button({
  this.label,
  this.child,
  this.icon,
  this.trailing,
  this.onPressed,
  this.action,
  this.variant = ButtonVariant.primary,
  this.size = ButtonSize.medium,
  this.disabled = false,
  this.loading = false,
  this.fullWidth = false,
  this.attributes,
  this.id,
  this.type = ButtonType.button,
  this.href,
  this.showArrow = false,
  this.styles,
  this.decoration,
  super.key,
});