copyWith method
MessageModel
copyWith({
- int? id,
- String? data,
- int? meeting,
- User? createdBy,
- SendingStatusEnum? sendingStatus,
- MessageStatusEnum? status,
- int? type,
- DateTime? createdAt,
- DateTime? updatedAt,
Implementation
MessageModel copyWith({
int? id,
String? data,
int? meeting,
User? createdBy,
SendingStatusEnum? sendingStatus,
MessageStatusEnum? status,
int? type,
DateTime? createdAt,
DateTime? updatedAt,
}) {
return MessageModel(
id: id ?? this.id,
data: data ?? this.data,
meeting: meeting ?? this.meeting,
createdBy: createdBy ?? this.createdBy,
sendingStatus: sendingStatus ?? this.sendingStatus,
status: status ?? this.status,
type: type ?? this.type,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt,
);
}