WeinDsTextButton constructor
const
WeinDsTextButton({
- Key? key,
- required String text,
- required TextButtonType type,
- dynamic onPressed()?,
Creates a customizable text button widget.
Implementation
const WeinDsTextButton({
super.key,
/// The text displayed on the button.
required this.text,
/// The type of button (primary or secondary).
required this.type,
/// The callback function triggered when the button is pressed.
this.onPressed,
});