VRoom class
Constructors
- VRoom({required String id, required String title, required String enTitle, required VRoomType roomType, required String thumbImage, required String? transTo, required bool isArchived, required int unReadCount, required VBaseMessage lastMessage, required DateTime createdAt, required bool isMuted, bool isOnline = false, required String? peerId, required String? peerIdentifier, required String? nickName, VSocketRoomTypingModel typingStatus = VSocketRoomTypingModel.offline})
- VRoom.empty()
-
VRoom.fromLocalMap(Map<
String, dynamic> map) -
VRoom.fromMap(Map<
String, dynamic> map)
Properties
- createdAt → DateTime
-
The timestamp when the room was created.
final
- enTitle ↔ String
-
The English title of the room.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
The unique identifier of the room.
final
- isArchived ↔ bool
-
A flag indicating if the room is archived.
getter/setter pair
- isDeleted ↔ bool
-
A flag indicating if the room is deleted.
getter/setter pair
- isMuted ↔ bool
-
A flag indicating if notifications for the room are muted.
getter/setter pair
- isOnline ↔ bool
-
A flag indicating if the room is currently online.
getter/setter pair
- isRoomMuted → bool
-
getters
no setter
- isRoomOnline → bool
-
no setter
- isRoomUnread → bool
-
no setter
- isSelected ↔ bool
-
A flag used for selecting the room, for example in a multi-select scenario.
getter/setter pair
- isTransEnable → bool
-
no setter
- lastMessage ↔ VBaseMessage
-
The last message that was sent in the room.
getter/setter pair
- lastMessageTime → DateTime
-
no setter
- lastMessageTimeString → String
-
no setter
- nickName ↔ String?
-
A nickname for the room.
getter/setter pair
- peerId → String?
-
The peer ID if this is a peer-to-peer room.
final
- peerIdentifier → String?
-
The peer identifier if this is a peer-to-peer room.
final
- roomType ↔ VRoomType
-
The type of the room, defined by the
VRoomType
enum.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thumbImage ↔ String
-
The URL or path to the thumbnail image of the room.
getter/setter pair
- title ↔ String
-
The title of the room in a specific language (could be a local language).
getter/setter pair
- transTo ↔ String?
-
The language to translate the messages to.
getter/setter pair
- typingStatus ↔ VSocketRoomTypingModel
-
The current typing status of the room.
getter/setter pair
- unReadCount ↔ int
-
The count of unread messages in the room.
getter/setter pair
Methods
-
copyWith(
{String? id, String? title, String? enTitle, String? thumbImage, VRoomType? roomType, bool? isArchived, int? unReadCount, VBaseMessage? lastMessage, bool? isDeleted, DateTime? createdAt, bool? isMuted, bool? isOnline, VSocketRoomTypingModel? typingStatus, String? nickName, String? transTo, String? peerId, String? peerIdentifier, String? blockerId}) → VRoom -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toggleSelect(
) → void -
toLocalMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override