CustomButton constructor

const CustomButton({
  1. Key? key,
  2. String variant = 'primary',
  3. String size = 'lg',
  4. VoidCallback? onDis,
  5. String? icon,
  6. bool expand = true,
  7. required String txt,
  8. required VoidCallback onTap,
  9. bool enabled = true,
})

Implementation

const CustomButton({
        super.key,
        this.variant = 'primary',
        this.size = 'lg',
        this.onDis,
        this.icon,
        this.expand = true,
        required this.txt,
        required this.onTap,
        this.enabled = true,
    }
);