copyWith method
UserNotificationVO
copyWith({
- String? uid,
- DocumentSnapshot<
Object?> ? snapshot, - String? message,
- String? userId,
- String? from,
- ChannelData? channelData,
- NotificationState? state,
- List<
NotificationChannelType> ? channelTypes, - DateTime? createdAt,
- DateTime? updatedAt,
- DateTime? deliveredAt,
- DateTime? readAt,
- Map<
String, dynamic> ? metadata,
Implementation
UserNotificationVO copyWith({
String? uid,
DocumentSnapshot? snapshot,
String? message,
String? userId,
String? from,
ChannelData? channelData,
NotificationState? state,
List<NotificationChannelType>? channelTypes,
DateTime? createdAt,
DateTime? updatedAt,
DateTime? deliveredAt,
DateTime? readAt,
Map<String, dynamic>? metadata,
}) {
return UserNotificationVO(
uid: uid ?? this.uid,
snapshot: snapshot ?? this.snapshot,
message: message ?? this.message,
userId: userId ?? this.userId,
from: from ?? this.from,
channelData: channelData ?? this.channelData,
state: state ?? this.state,
channelTypes: channelTypes ?? this.channelTypes,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt,
deliveredAt: deliveredAt ?? this.deliveredAt,
readAt: readAt ?? this.readAt,
metadata: metadata ?? this.metadata,
);
}