CButton constructor
const
CButton({
- Key? key,
- required String text,
- required VoidCallback? onPressed,
- ButtonType type = ButtonType.primary,
- Widget? suffixIcon,
- bool isLoading = false,
- ButtonStyle? style,
Implementation
const CButton({
super.key,
required this.text,
required this.onPressed,
this.type = ButtonType.primary,
this.suffixIcon,
this.isLoading = false,
this.style,
});