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,
})
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,
}) {
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,
);
}