CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required String text,
  3. required Color color,
  4. required VoidCallback onPressed,
  5. Color? textColor,
  6. Widget? customContent,
})

Implementation

const CustomButton({
  Key? key,
  required this.text,
  required this.color,
  required this.onPressed, this.textColor, this.customContent,
}) : super(key: key);