copyWith method
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,
})
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,
);