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