PrimaryButton constructor

const PrimaryButton(
  1. String title, {
  2. Key? key,
  3. double? width,
  4. bool disable = false,
  5. dynamic onPressed()?,
  6. Color? color,
  7. List<Widget>? children,
  8. Widget? icon,
  9. String variant = 'primary',
  10. double radius = 10,
})

Implementation

const PrimaryButton(
  this.title, {
  Key? key,
  this.width,
  this.disable = false,
  this.onPressed,
  this.color,
  this.children,
  this.icon,
  this.variant = 'primary',
  this.radius = 10,
}) : super(key: key);