Button constructor
const
Button({
- Key? key,
- required String text,
- VoidCallback? onPressed,
- bool enabled = true,
- ButtonStyle? style,
- FocusNode? focusNode,
Creates a Button displaying text with an optional onPressed callback.
Implementation
const Button({
super.key,
required this.text,
this.onPressed,
this.enabled = true,
this.style,
this.focusNode,
});