Button constructor

const Button({
  1. Key? key,
  2. required Color backgroundColor,
  3. required Color textColor,
  4. required String text,
  5. required VoidCallback onTap,
})

Implementation

const Button(
    {Key? key, required this.backgroundColor, required this.textColor,required this.text,required this.onTap}) : super(key: key);