copyWith method
CheckboxProps
copyWith({
- String? id,
- bool? checked,
- String? label,
- String? description,
- ComponentSize? size,
- ColorVariant? color,
- bool? disabled,
- void onChanged()?,
- String? group,
- String? value,
Implementation
CheckboxProps copyWith({
String? id,
bool? checked,
String? label,
String? description,
ComponentSize? size,
ColorVariant? color,
bool? disabled,
void Function(bool)? onChanged,
String? group,
String? value,
}) {
return CheckboxProps(
id: id ?? this.id,
checked: checked ?? this.checked,
label: label ?? this.label,
description: description ?? this.description,
size: size ?? this.size,
color: color ?? this.color,
disabled: disabled ?? this.disabled,
onChanged: onChanged ?? this.onChanged,
group: group ?? this.group,
value: value ?? this.value,
);
}