copyWith method
Implementation
BookData copyWith({
int? id,
String? code,
String? title,
int? seqNum,
bool? published,
bool? locked,
Value<String?> imagePath = const Value.absent(),
Value<String?> description = const Value.absent(),
Value<String?> note = const Value.absent(),
}) => BookData(
id: id ?? this.id,
code: code ?? this.code,
title: title ?? this.title,
seqNum: seqNum ?? this.seqNum,
published: published ?? this.published,
locked: locked ?? this.locked,
imagePath: imagePath.present ? imagePath.value : this.imagePath,
description: description.present ? description.value : this.description,
note: note.present ? note.value : this.note,
);