RoundedButton constructor
const
RoundedButton({})
Creates a RoundedButton
widget.
The onPressed
parameter must not be null.
The text
parameter must not be empty if icon
is null.
Implementation
const RoundedButton(
{super.key,
this.text = "",
required this.onPressed,
this.width,
this.height,
this.color,
this.textColor,
this.icon,
this.iconSize,
this.iconColor,
this.shadow,
this.margin = 0.0})
: assert(text != "" || icon != null);