ChatModel class

Constructors

ChatModel({String message = '', bool isUser = false, int? mssgID})

Properties

hashCode int
The hash code for this object.
no setterinherited
isUser bool
Is isUser is true, if the message was sent by the user
final
message String
final
mssgID int
This also severs as the DateTime in millisecondsSinceEpoch
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toClass(Map map) ChatModel
A simple funct to convert to Map to ChatModel
toMap(ChatModel chatModel) Map
toString() String
A string representation of this object.
inherited

Operators

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