ChannelMessage class
Creates a message in a channel.
Constructors
- ChannelMessage({String? channelArn, String? content, DateTime? createdTimestamp, DateTime? lastEditedTimestamp, DateTime? lastUpdatedTimestamp, String? messageId, String? metadata, ChannelMessagePersistenceType? persistence, bool? redacted, Identity? sender, ChannelMessageType? type})
-
ChannelMessage.fromJson(Map<
String, dynamic> json) -
factory
Properties
- channelArn → String?
-
The ARN of the channel.
final
- content → String?
-
The message content.
final
- createdTimestamp → DateTime?
-
The time at which the message was created.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastEditedTimestamp → DateTime?
-
The time at which a message was edited.
final
- lastUpdatedTimestamp → DateTime?
-
The time at which a message was updated.
final
- messageId → String?
-
The ID of a message.
final
- metadata → String?
-
The message metadata.
final
- persistence → ChannelMessagePersistenceType?
-
final
- redacted → bool?
-
Hides the content of a message. The message still exists on the back end,
but this action only returns metadata.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sender → Identity?
-
The message sender.
final
- type → ChannelMessageType?
-
The message type.
final
Methods
-
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