SampleButton constructor
const
SampleButton({
- Key? key,
- required String text,
- VoidCallback? onPressed,
Implementation
const SampleButton({
Key? key,
required this.text,
this.onPressed,
}) : super(key: key);