copyWith method

ChecklistTask copyWith({
  1. int? id,
  2. FormattedText? text,
  3. MessageSender? completedBy,
  4. int? completionDate,
})

Implementation

ChecklistTask copyWith({
  int? id,
  FormattedText? text,
  MessageSender? completedBy,
  int? completionDate,
}) => ChecklistTask(
  id: id ?? this.id,
  text: text ?? this.text,
  completedBy: completedBy ?? this.completedBy,
  completionDate: completionDate ?? this.completionDate,
);