copyWith method

  1. @override
MessageChecklistTasksDone copyWith({
  1. int? checklistMessageId,
  2. List<int>? markedAsDoneTaskIds,
  3. List<int>? markedAsNotDoneTaskIds,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
MessageChecklistTasksDone copyWith({
  int? checklistMessageId,
  List<int>? markedAsDoneTaskIds,
  List<int>? markedAsNotDoneTaskIds,
}) => MessageChecklistTasksDone(
  checklistMessageId: checklistMessageId ?? this.checklistMessageId,
  markedAsDoneTaskIds: markedAsDoneTaskIds ?? this.markedAsDoneTaskIds,
  markedAsNotDoneTaskIds:
      markedAsNotDoneTaskIds ?? this.markedAsNotDoneTaskIds,
);