CButton constructor

const CButton({
  1. Key? key,
  2. required String text,
  3. required VoidCallback? onPressed,
  4. ButtonType type = ButtonType.primary,
  5. Widget? suffixIcon,
  6. bool isLoading = false,
  7. ButtonStyle? style,
})

Implementation

const CButton({
  super.key,
  required this.text,
  required this.onPressed,
  this.type = ButtonType.primary,
  this.suffixIcon,
  this.isLoading = false,
  this.style,
});