CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required dynamic onPressed(),
  3. required String buttonText,
})

Implementation

const CustomButton(
    {Key? key, required this.onPressed, required this.buttonText})
    : super(key: key);