PillButton.icon constructor
const
PillButton.icon({})
A factory constructor that creates a PillButton with a required leading
widget.
The leading
argument is required and specifies the widget to display as the leading content of the button.
Implementation
const PillButton.icon({
super.key,
required this.text,
required this.leading,
this.onTap,
this.isEnabled = true,
this.isLoading = false,
});