copyWith method

CheckItem copyWith({
  1. String? name,
  2. String? value,
  3. bool? isChecked,
})

Creates a copy of the CheckItem with updated values

Implementation

CheckItem copyWith({String? name, String? value, bool? isChecked}) {
  return CheckItem(
    id: id,
    name: name ?? this.name,
    value: value ?? this.value,
    isChecked: isChecked ?? this.isChecked,
  );
}