Button constructor

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

Implementation

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