RoomMembershipMessage constructor

RoomMembershipMessage({
  1. required String id,
  2. String? firstName,
  3. String? lastName,
  4. required String roomId,
  5. String? avatar,
  6. PresenceType presenceType = PresenceType.available,
  7. required bool isGroup,
  8. List<RoomMember>? members,
  9. int? sendTime,
})

Implementation

RoomMembershipMessage(
    {required String id,
    this.firstName,
    this.lastName,
    required this.roomId,
    this.avatar,
    this.presenceType = PresenceType.available,
    required this.isGroup,
    this.members,
    int? sendTime})
    : super(
          id: id,
          type: MessageType.membership,
          fromId: '',
          fromName: '',
          sendTime: sendTime);