copyWith method
Implementation
TaskElement copyWith({
String? taskDesc,
String? event,
int frequency = 0,
String? logic,
Conditions? conditions,
List<Reward>? rewards,
String? status,
dynamic dateCompleted,
dynamic taskId,
}) =>
TaskElement(
taskDesc: taskDesc ?? this.taskDesc,
event: event ?? this.event,
frequency: frequency ?? this.frequency,
logic: logic ?? this.logic,
conditions: conditions ?? this.conditions,
rewards: rewards ?? this.rewards,
status: status ?? this.status,
dateCompleted: dateCompleted ?? this.dateCompleted,
taskId: taskId ?? this.taskId,
);