copyWith method
ButtonProps
copyWith({
- String? label,
- Widget? child,
- Widget? icon,
- Widget? trailing,
- void onPressed()?,
- ArcaneInteraction? action,
- ButtonVariant? variant,
- ButtonSize? size,
- bool? disabled,
- bool? loading,
- bool? fullWidth,
- String? id,
- Map<
String, String> ? attributes, - String? href,
- ButtonType? type,
- bool? showArrow,
- ArcaneStyleData? styles,
- ArcaneDecoration? decoration,
Implementation
ButtonProps copyWith({
String? label,
Widget? child,
Widget? icon,
Widget? trailing,
void Function()? onPressed,
ArcaneInteraction? action,
ButtonVariant? variant,
ButtonSize? size,
bool? disabled,
bool? loading,
bool? fullWidth,
String? id,
Map<String, String>? attributes,
String? href,
ButtonType? type,
bool? showArrow,
ArcaneStyleData? styles,
ArcaneDecoration? decoration,
}) {
return ButtonProps(
label: label ?? this.label,
child: child ?? this.child,
icon: icon ?? this.icon,
trailing: trailing ?? this.trailing,
onPressed: onPressed ?? this.onPressed,
action: action ?? this.action,
variant: variant ?? this.variant,
size: size ?? this.size,
disabled: disabled ?? this.disabled,
loading: loading ?? this.loading,
fullWidth: fullWidth ?? this.fullWidth,
id: id ?? this.id,
attributes: attributes ?? this.attributes,
href: href ?? this.href,
type: type ?? this.type,
showArrow: showArrow ?? this.showArrow,
styles: styles ?? this.styles,
decoration: decoration ?? this.decoration,
);
}