copyWith method
TaskCommentsModel
copyWith(
{ - String? id,
- String? userId,
- String? profilePic,
- String? userName,
- Timestamp? createdAt,
- Timestamp? deletedAt,
- String? taskId,
- String? attachmentLink,
- String? fileExtension,
- String? fileName,
- String? thumbnailPath,
})
Implementation
TaskCommentsModel copyWith({ String? id,
String? comment,
String? userId,
String? profilePic,
String? userName,
Timestamp? createdAt,
Timestamp? deletedAt,
String? taskId,
String? attachmentLink,
String? fileExtension,
String? fileName,
String? thumbnailPath,
}) => TaskCommentsModel( id: id ?? _id,
comment: comment ?? _comment,
userId: userId ?? _userId,
profilePic: profilePic ?? _profilePic,
userName: userName ?? _userName,
createdAt: createdAt ?? _createdAt,
deletedAt: deletedAt ?? _deletedAt,
taskId: taskId ?? _taskId,
attachmentLink: attachmentLink ?? _attachmentLink,
fileExtension: fileExtension ?? _fileExtension,
fileName: fileName ?? _fileName,
thumbnailPath: thumbnailPath ?? _thumbnailPath,
);