PillButton.icon constructor

const PillButton.icon({
  1. Key? key,
  2. required String text,
  3. required Widget? leading,
  4. GestureTapCallback? onTap,
  5. bool isEnabled = true,
  6. bool isLoading = false,
})

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,
});