UserNotification constructor
UserNotification({
- required String id,
- required String tenantId,
- String? userId,
- String? anonUserId,
- required String urlId,
- required String url,
- String? pageTitle,
- required bool viewed,
- required bool isUnreadMessage,
- required bool sent,
- required DateTime createdAt,
- required NotificationType type,
- String? fromCommentId,
- String? fromVoteId,
- String? fromUserName,
- String? fromUserId,
- String? fromUserAvatarSrc,
- required bool optedOut,
- int? count,
- List<
String> fromUserIds = const [], - List<
String> fromUserNames = const [],
Returns a new UserNotification instance.
Implementation
UserNotification({
required this.id,
required this.tenantId,
this.userId,
this.anonUserId,
required this.urlId,
required this.url,
this.pageTitle,
required this.relatedObjectType,
required this.relatedObjectId,
required this.viewed,
required this.isUnreadMessage,
required this.sent,
required this.createdAt,
required this.type,
this.fromCommentId,
this.fromVoteId,
this.fromUserName,
this.fromUserId,
this.fromUserAvatarSrc,
required this.optedOut,
this.count,
this.relatedIds = const [],
this.fromUserIds = const [],
this.fromUserNames = const [],
});