Button constructor
const
Button({
- String? label,
- Widget? child,
- Widget? icon,
- Widget? trailing,
- void onPressed()?,
- ButtonVariant variant = ButtonVariant.primary,
- ButtonSize size = ButtonSize.medium,
- bool disabled = false,
- bool loading = false,
- bool fullWidth = false,
- Map<
String, String> ? attributes, - String? id,
- String? href,
- bool showArrow = false,
- Key? key,
Implementation
const Button({
this.label,
this.child,
this.icon,
this.trailing,
this.onPressed,
this.variant = ButtonVariant.primary,
this.size = ButtonSize.medium,
this.disabled = false,
this.loading = false,
this.fullWidth = false,
this.attributes,
this.id,
this.href,
this.showArrow = false,
super.key,
});