CustomButton constructor
const
CustomButton({
- Key? key,
- required Function onTap,
- String? label,
- ColorStatus? colorStatus,
- ButtonType buttonType = ButtonType.filled,
- bool fitWidth = false,
- IconData? icon,
- bool isRound = false,
- 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);