ChatMessage class
Constructors
-
ChatMessage({required String id, required MessageType type, String? fromId, String? fromName, String? toId, String? toName, required String text, required String roomId, MessageOriginality originality = MessageOriginality.original, String? attachment, String? thumbnail, String? originalId, String? originalMessage, int? sendTime, int? size, String? mime, double? longitude, double? latitude})
-
-
ChatMessage.fromJson(Map<String, dynamic> json)
-
factory
-
ChatMessage.fromString(String payload)
-
factory
Methods
-
copyWith({String? id, MessageType? type, String? fromId, String? fromName, String? toId, String? toName, String? text, String? roomId, MessageOriginality? originality, String? attachment, String? thumbnail, String? originalId, String? originalMessage, int? sendTime, int? size, String? mime, double? longitude, double? latitude})
→ ChatMessage
-
-
isChatMarkerEvent()
→ bool
-
inherited
-
isChatMessage()
→ bool
-
inherited
-
isInvitationEvent()
→ bool
-
inherited
-
isInvitationResponseEvent()
→ bool
-
inherited
-
isPresenceEvent()
→ bool
-
inherited
-
isTypingEvent()
→ bool
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson()
→ Map<String, dynamic>
-
override
-
toString()
→ String
-
A string representation of this object.
inherited