WeinDsTextButton constructor

const WeinDsTextButton({
  1. Key? key,
  2. required String text,
  3. required TextButtonType type,
  4. 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,
});