DyteChatMessage class

Constructors

DyteChatMessage({required String displayName, required DyteMessageType type, required bool read, required String userId, String? pluginId, required String time})
DyteChatMessage.fromJson(String source)
factory
DyteChatMessage.fromMap(Map<String, dynamic> map)
factory

Properties

displayName String
final
hashCode int
The hash code for this object.
no setteroverride
pluginId String?
final
read bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
time String
final
type DyteMessageType
final
userId String
final

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 ==(covariant DyteChatMessage other) bool
The equality operator.
override

Static Methods

fileMessage({required String displayName, required bool read, String? pluginId, required String time, required String userId, required String name, required String link, required int size}) DyteFileMessage
imageMessage({required String userId, required String displayName, required bool read, String? pluginId, required String link, required String time}) DyteImageMessage
textMessage({required String displayName, required bool read, String? pluginId, required String message, required String time, required String userid}) DyteTextMessage