copyWith method
ToggleButtonProps
copyWith({
- bool? value,
- void onChanged(
- bool value
- ArcaneInteraction? onChangeAction,
- String? label,
- Widget? icon,
- CycleButtonSize? size,
- bool? disabled,
- String? id,
- Map<
String, String> ? attributes, - ArcaneStyleData? styles,
- ArcaneDecoration? decoration,
Implementation
ToggleButtonProps copyWith({
bool? value,
void Function(bool value)? onChanged,
ArcaneInteraction? onChangeAction,
String? label,
Widget? icon,
CycleButtonSize? size,
bool? disabled,
String? id,
Map<String, String>? attributes,
ArcaneStyleData? styles,
ArcaneDecoration? decoration,
}) {
return ToggleButtonProps(
value: value ?? this.value,
onChanged: onChanged ?? this.onChanged,
onChangeAction: onChangeAction ?? this.onChangeAction,
label: label ?? this.label,
icon: icon ?? this.icon,
size: size ?? this.size,
disabled: disabled ?? this.disabled,
id: id ?? this.id,
attributes: attributes ?? this.attributes,
styles: styles ?? this.styles,
decoration: decoration ?? this.decoration,
);
}