ZegoInRoomMessage class

in-room message

Constructors

ZegoInRoomMessage({required ZegoUIKitUser user, required String message, required int timestamp, required int messageID, Map<String, String> attributes = const {}})
ZegoInRoomMessage.fromBroadcastMessage(ZegoBroadcastMessageInfo message)

Properties

attributes Map<String, String>
message attributes
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
message String
message content.
getter/setter pair
messageID int
If the local message sending fails, then the message ID at this time is unreliable, and is a negative sequential value.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ValueNotifier<ZegoInRoomMessageState>
getter/setter pair
timestamp int
The timestamp at which the message was sent. You can format the timestamp, which is in milliseconds since epoch, using DateTime.fromMillisecondsSinceEpoch(timestamp).
getter/setter pair
user ZegoUIKitUser
message sender.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

attributesKey String
no setter
messageKey String
no setter

Static Methods

jsonBody({required String message, required Map<String, String> attributes}) String