copyWith method

TaskSolution copyWith({
  1. TaskType? type,
  2. String? solutionUrl,
  3. List<TaskSolutionAnswersItem>? answers,
  4. 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,
  );
}