Button.primary constructor
const
Button.primary({
- String? label,
- Widget? child,
- Widget? icon,
- Widget? trailing,
- void onPressed()?,
- ArcaneInteraction? action,
- 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.primary({
this.label,
this.child,
this.icon,
this.trailing,
this.onPressed,
this.action,
this.size = ButtonSize.medium,
this.disabled = false,
this.loading = false,
this.fullWidth = false,
this.attributes,
this.id,
this.href,
this.showArrow = false,
super.key,
}) : variant = ButtonVariant.primary;