Subscriber constructor

Subscriber({
  1. required String id,
  2. required String userId,
  3. required String channelId,
  4. int role = SubscribeRole.roleAny,
  5. bool online = false,
  6. int unreadMessages = 0,
  7. DateTime? lastReadMessageAt,
  8. String? lastReadMessageId,
  9. String? avatarUrl,
  10. String? nickname,
  11. DateTime? createdAt,
})

Implementation

Subscriber({
  required super.id,
  required this.userId,
  required this.channelId,
  this.role = SubscribeRole.roleAny,
  this.online = false,
  this.unreadMessages = 0,
  this.lastReadMessageAt,
  this.lastReadMessageId,
  super.avatarUrl,
  super.nickname,
  super.createdAt,
});