MessageBase class abstract
The base class for your custom ChatMessage model, which has to extend MessageBase
Constructors
Properties
-
The author of this message
no setter
- createdAt → DateTime
-
Date at which the message has been created at
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Id of your ChatMessage
no setter
- messageType → MessageBaseType
-
The type of message, which will determine which Widget has to be built
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String?
-
Actual text message.
no setter
- url → String
-
The url to the attachment associated to the message
no setter
Methods
-
isFromAppUser(
String appUserId) → bool - Helper method to check whether the message is from the app user
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited