copyWith method

Data copyWith({
  1. String? id,
  2. String? name,
  3. String? clientId,
  4. String? gameId,
  5. String? challengeType,
  6. String? rewardCriteria,
  7. dynamic description,
  8. dynamic status,
  9. Props? props,
  10. List<TaskElement>? tasks,
  11. DateTime? createdAt,
  12. DateTime? updatedAt,
  13. int? v,
})

Implementation

Data copyWith({
  String? id,
  String? name,
  String? clientId,
  String? gameId,
  String? challengeType,
  String? rewardCriteria,
  dynamic description,
  dynamic status,
  Props? props,
  List<TaskElement>? tasks,
  DateTime? createdAt,
  DateTime? updatedAt,
  int? v,
}) =>
    Data(
      id: id ?? this.id,
      name: name ?? this.name,
      clientId: clientId ?? this.clientId,
      gameId: gameId ?? this.gameId,
      challengeType: challengeType ?? this.challengeType,
      rewardCriteria: rewardCriteria ?? this.rewardCriteria,
      description: description ?? this.description,
      status: status ?? this.status,
      props: props ?? this.props,
      tasks: tasks ?? this.tasks,
      createdAt: createdAt ?? this.createdAt,
      updatedAt: updatedAt ?? this.updatedAt,
      v: v ?? this.v,
    );