Button constructor

const Button({
  1. Key? key,
  2. double? opacity = 1.0,
  3. required dynamic onPressed()?,
  4. required Widget? child,
})

Implementation

const Button({
  Key? key,
  this.opacity = 1.0,
  required this.onPressed,
  required this.child,
}) : super(key: key);