CustomButton constructor

CustomButton({
  1. required dynamic onPressed,
  2. required Widget child,
  3. Color? backgroundColor,
  4. dynamic style,
  5. Key? key,
})

Implementation

CustomButton({
  required this.onPressed,
  required this.child,
  this.backgroundColor,
  this.style,
  Key? key,
}) : super(key: key);