copyWith method

MaintenanceNoteDTO copyWith({
  1. int? id,
  2. DateTime? timestamp,
  3. String? contents,
  4. bool? authorIsDealer,
  5. DealerUserDTO? dealerAuthor,
})

Implementation

MaintenanceNoteDTO copyWith(
    {int? id,
    DateTime? timestamp,
    String? contents,
    bool? authorIsDealer,
    DealerUserDTO? dealerAuthor}) {
  return MaintenanceNoteDTO(
      id: id ?? this.id,
      timestamp: timestamp ?? this.timestamp,
      contents: contents ?? this.contents,
      authorIsDealer: authorIsDealer ?? this.authorIsDealer,
      dealerAuthor: dealerAuthor ?? this.dealerAuthor);
}