Button constructor

Button({
  1. void onClick()?,
  2. Widget? child,
  3. String text = '',
  4. ButtonType? type,
  5. ButtonShape? shape,
  6. bool loading = false,
  7. bool disabled = false,
  8. bool danger = false,
  9. IconData? icon,
})

Implementation

Button({
  this.onClick,
  this.child,
  this.text = '',
  this.type,
  this.shape,
  this.loading = false,
  this.disabled = false,
  this.danger = false,
  this.icon,
});