copyWith method

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

Implementation

NoteData copyWith({
  int? id,
  String? title,
  String? content,
  DateTime? createDateTime,
  String? colorCode,
}) => NoteData(
  id: id ?? this.id,
  title: title ?? this.title,
  content: content ?? this.content,
  createDateTime: createDateTime ?? this.createDateTime,
  colorCode: colorCode ?? this.colorCode,
);