MyCustomButton constructor

const MyCustomButton({
  1. required VoidCallback onPressed,
  2. required String text,
  3. bool isLoadingIndicatorDisplayed = false,
  4. bool hasPostIcon = false,
  5. IconData? postIcon,
  6. bool isActive = true,
  7. bool isBordered = false,
  8. Color bgColor = Colors.black,
  9. Color textColor = Colors.white,
  10. double borderRadius = 8,
  11. Color borderColor = Colors.red,
})

Implementation

const MyCustomButton({
  required this.onPressed,
  required this.text,
  this.isLoadingIndicatorDisplayed = false,
  this.hasPostIcon = false,
  this.postIcon,
  this.isActive = true,
  this.isBordered = false,
  this.bgColor = Colors.black,
  this.textColor = Colors.white,
  this.borderRadius = 8,
  this.borderColor = Colors.red,
});