CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required Function onTap,
  3. String? label,
  4. ColorStatus? colorStatus,
  5. ButtonType buttonType = ButtonType.filled,
  6. bool fitWidth = false,
  7. IconData? icon,
  8. bool isRound = false,
  9. bool isLeadingIcon = true,
})

Implementation

const CustomButton({
  Key? key,
  required this.onTap,
  this.label,
  this.colorStatus,
  this.buttonType = ButtonType.filled,
  this.fitWidth = false,
  this.icon,
  this.isRound = false,
  this.isLeadingIcon = true,
}) : super(key: key);