Button constructor

const Button(
  1. String? text, {
  2. Key? key,
  3. VoidCallback? onPressed,
  4. IconData? icon,
  5. Color? iconColor,
  6. Color disabledTextColor = Colors.white,
  7. bool busy = false,
  8. bool pill = false,
  9. ButtonType type = ButtonType.primary,
  10. String? busyText,
  11. double? fontSize,
})

Implementation

const Button(
  this.text, {
  super.key,
  this.onPressed,
  this.icon,
  this.iconColor,
  this.disabledTextColor = Colors.white,
  this.busy = false,
  this.pill = false,
  this.type = ButtonType.primary,
  this.busyText,
  this.fontSize,
});