copyWith method

BookData copyWith({
  1. int? id,
  2. String? code,
  3. String? title,
  4. int? seqNum,
  5. bool? published,
  6. bool? locked,
  7. Value<String?> imagePath = const Value.absent(),
  8. Value<String?> description = const Value.absent(),
  9. Value<String?> note = const Value.absent(),
})

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