FloraButton constructor
const
FloraButton({
- Key? key,
- String? title,
- VoidCallback? onPressed,
- Widget? titleWidget,
- FloraButtonOptions options = const FloraButtonOptions(),
- bool enabled = true,
- bool loading = false,
- WidgetBuilder? loadingBuilder,
Implementation
const FloraButton({
Key? key,
this.title,
this.onPressed,
this.titleWidget,
this.options = const FloraButtonOptions(),
this.enabled = true,
this.loading = false,
this.loadingBuilder,
}) : assert((title == null && titleWidget == null) ||
!(title != null && titleWidget != null)),
super(key: key);