copyWith method

Comment copyWith({
  1. dynamic clientMeta,
  2. DateTime? createdAt,
  3. String? fileKey,
  4. String? id,
  5. String? orderId,
  6. String? parentId,
  7. DateTime? resolvedAt,
  8. User? user,
})

Implementation

Comment copyWith({
  dynamic? clientMeta,
  DateTime? createdAt,
  String? fileKey,
  String? id,
  String? orderId,
  String? parentId,
  DateTime? resolvedAt,
  User? user,
}) {
  return Comment(
    clientMeta: clientMeta ?? this.clientMeta,
    createdAt: createdAt ?? this.createdAt,
    fileKey: fileKey ?? this.fileKey,
    id: id ?? this.id,
    orderId: orderId ?? this.orderId,
    parentId: parentId ?? this.parentId,
    resolvedAt: resolvedAt ?? this.resolvedAt,
    user: user ?? this.user,
  );
}