copy method
CheckBoxItemOptionModel
copy({
- String? id,
- String? itemId,
- String? label,
- Option<
int> ? min, - Option<
int> ? max, - Iterable<
CheckBoxElementModel> ? checkboxes, - DateTime? updatedAt,
- DateTime? createdAt,
override
Implementation
@override
CheckBoxItemOptionModel copy({
String? id,
String? itemId,
String? label,
Option<int>? min,
Option<int>? max,
Iterable<CheckBoxElementModel>? checkboxes,
DateTime? updatedAt,
DateTime? createdAt,
}) {
return CheckBoxItemOptionModel(
id: id ?? this.id,
itemId: itemId ?? this.itemId,
label: label ?? this.label,
updatedAt: updatedAt ?? this.updatedAt,
createdAt: createdAt ?? this.createdAt,
min: min != null ? min.value : this.min,
max: max != null ? max.value : this.max,
checkboxes: checkboxes ?? this.checkboxes,
);
}