RootMessage class
Class representing a root message.
- Implementers
Constructors
-
RootMessage({required String channelUrl, required ChannelType channelType, String? data, String? customType, MentionType mentionType = MentionType.users, List<
User> mentionedUsers = const <User>[], List<String> ? mentionedUserIds, List<MessageMetaArray> ? allMetaArrays, Map<String, dynamic> ? extendedMessage, int createdAt = 0, int updatedAt = 0})
Properties
-
allMetaArrays
↔ List<
MessageMetaArray> ? -
All
MessageMetaArray
s of the message.getter/setter pair - channelType ↔ ChannelType
-
The ChannelType of the channel this message belongs to.
getter/setter pair
- channelUrl ↔ String
-
The channel URL of the channel this message belongs to.
getter/setter pair
- chat ↔ Chat
-
getter/setter pair
- createdAt ↔ int
-
The creation time of the message in milliseconds.
getter/setter pair
- customType ↔ String?
-
The custom type of the message.
getter/setter pair
- data ↔ String?
-
The custom data of the message.
getter/setter pair
-
extendedMessage
↔ Map<
String, dynamic> -
extendedMessage is used for Sendbird UiKit.
Only featured in GroupChannel
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
-
mentionedUserIds
↔ List<
String> -
getter/setter pair
-
mentionedUsers
↔ List<
User> -
The mentioned users of the message.
getter/setter pair
- mentionType ↔ MentionType
-
The mention type. Refer to MentionType.
getter/setter pair
- messageType → MessageType
-
no setter
- rootId → String
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updatedAt ↔ int
-
The updated time of the message in milliseconds.
getter/setter pair
Methods
-
getMessageId(
) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
Chat chat) → void -
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Map< String, dynamic> json) → RootMessage -
fromJsonWithChat(
Chat chat, Map< String, dynamic> json) → RootMessage -
getMessageFromJsonWithChat<
T extends BaseMessage> (Chat chat, Map< String, dynamic> json, {ChannelType? channelType, String? commandType}) → RootMessage