CustomButton constructor

const CustomButton({
  1. Key? key,
  2. Color? highlightColor,
  3. EdgeInsetsGeometry? padding,
  4. required Widget child,
  5. dynamic onPressed()?,
  6. Color? color,
})

Implementation

const CustomButton(
    {Key? key,
    this.highlightColor,
    this.padding,
    required this.child,
    this.onPressed,
    this.color,})
    : super(key: key);