copyWith method
TaskSolution
copyWith({
- TaskType? type,
- String? solutionUrl,
- List<
TaskSolutionAnswersItem> ? answers, - List<
TaskAttachment> ? attachments,
Implementation
TaskSolution copyWith({
enums.TaskType? type,
String? solutionUrl,
List<TaskSolutionAnswersItem>? answers,
List<TaskAttachment>? attachments,
}) {
return TaskSolution(
type: type ?? this.type,
solutionUrl: solutionUrl ?? this.solutionUrl,
answers: answers ?? this.answers,
attachments: attachments ?? this.attachments,
);
}