copyWith method

NoteCompanion copyWith({
  1. Value<int>? id,
  2. Value<String>? title,
  3. Value<String>? content,
  4. Value<DateTime>? createDateTime,
  5. Value<String>? colorCode,
})

Implementation

NoteCompanion copyWith({
  Value<int>? id,
  Value<String>? title,
  Value<String>? content,
  Value<DateTime>? createDateTime,
  Value<String>? colorCode,
}) {
  return NoteCompanion(
    id: id ?? this.id,
    title: title ?? this.title,
    content: content ?? this.content,
    createDateTime: createDateTime ?? this.createDateTime,
    colorCode: colorCode ?? this.colorCode,
  );
}