CustomButton constructor

const CustomButton(
  1. String text, {
  2. Key? key,
  3. dynamic required,
  4. double padding = 0.0,
  5. double height = 45,
  6. required void onPressed(),
  7. required Color backGroundColor,
})

Implementation

const CustomButton(this.text,
    {Key? key,
    required,
    this.padding = 0.0,
    this.height = 45,
    required this.onPressed,
    required this.backGroundColor})
    : super(key: key);