PrimaryButton constructor

const PrimaryButton({
  1. Key? key,
  2. String label = 'Get Started',
  3. VoidCallback? onPressed,
  4. Widget? iconRight,
  5. bool loading = false,
  6. bool disabled = false,
  7. String? testId,
  8. EdgeInsets? padding,
  9. double? width,
  10. double height = 48.0,
})

Implementation

const PrimaryButton({
  Key? key,
  this.label = 'Get Started',
  this.onPressed,
  this.iconRight,
  this.loading = false,
  this.disabled = false,
  this.testId,
  this.padding,
  this.width,
  this.height = 48.0,
}) : super(key: key);