Button constructor

const Button({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. required String title,
  4. ButtonStyle? style,
})

Implementation

const Button({
  Key? key,
  required this.onPressed,
  required this.title,
  this.style,
}) : super(key: key);