AppButton constructor

const AppButton({
  1. Key? key,
  2. required String text,
  3. VoidCallback? onPressed,
  4. bool isLoading = false,
  5. IconData? icon,
  6. bool isSecondary = false,
  7. Color? backgroundColor,
  8. Color? textColor,
})

Implementation

const AppButton({
  super.key,
  required this.text,
  this.onPressed,
  this.isLoading = false,
  this.icon,
  this.isSecondary = false,
  this.backgroundColor,
  this.textColor,
});