PumaButton constructor

const PumaButton({
  1. Key? key,
  2. Widget? child,
  3. PumaButtonVariant variant = PumaButtonVariant.plain,
  4. bool? disabled = false,
  5. bool? loading = false,
  6. double radius = 20,
  7. Color? backgroundColor,
  8. Color? borderColor,
  9. PumaDensity density = PumaDensity.md,
  10. AlignmentDirectional loadingAlignment = AlignmentDirectional.center,
  11. void onPressed()?,
})

Implementation

const PumaButton({
  Key? key,
  this.child,
  this.variant = PumaButtonVariant.plain,
  this.disabled = false,
  this.loading = false,
  this.radius = 20,
  this.backgroundColor,
  this.borderColor,
  this.density = PumaDensity.md,
  this.loadingAlignment = AlignmentDirectional.center,
  this.onPressed,
}) : super(key: key);