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