copyWith method
Suggestion
copyWith(
{ - String? id,
- String? title,
- String? description,
- List<String>? images,
- List<SuggestionLabel>? labels,
- String? authorId,
- bool? isAnonymous,
- DateTime? creationTime,
- SuggestionStatus? status,
- Set<String>? votedUserIds,
- Set<String>? notifyUserIds,
})
Implementation
Suggestion copyWith({
String? id,
String? title,
String? description,
List<Comment>? comments,
List<String>? images,
List<SuggestionLabel>? labels,
String? authorId,
bool? isAnonymous,
DateTime? creationTime,
SuggestionStatus? status,
Set<String>? votedUserIds,
Set<String>? notifyUserIds,
}) {
return Suggestion(
id: id ?? this.id,
title: title ?? this.title,
description: description ?? this.description,
images: images ?? this.images,
labels: labels ?? this.labels,
comments: comments ?? this.comments,
authorId: authorId ?? this.authorId,
isAnonymous: isAnonymous ?? this.isAnonymous,
creationTime: creationTime ?? this.creationTime,
status: status ?? this.status,
votedUserIds: votedUserIds ?? this.votedUserIds,
notifyUserIds: notifyUserIds ?? this.notifyUserIds,
);
}