CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required String label,
  3. required Color backgroundColor,
  4. required Color textColor,
  5. void onPressed()?,
  6. ButtonStyle? style,
  7. bool isLoading = false,
  8. double shadowOpacity = 0.5,
})

Implementation

const CustomButton({
  Key? key,
  required this.label,
  required this.backgroundColor,
  required this.textColor,
  this.onPressed,
  this.style,
  this.isLoading = false,
  this.shadowOpacity = 0.5,
}) : super(key: key);