copyWith method

ProjectData copyWith({
  1. int? id,
  2. String? code,
  3. String? name,
  4. Value<String?> description = const Value.absent(),
  5. Value<String?> note = const Value.absent(),
})

Implementation

ProjectData copyWith({
  int? id,
  String? code,
  String? name,
  Value<String?> description = const Value.absent(),
  Value<String?> note = const Value.absent(),
}) => ProjectData(
  id: id ?? this.id,
  code: code ?? this.code,
  name: name ?? this.name,
  description: description.present ? description.value : this.description,
  note: note.present ? note.value : this.note,
);