ChatMessage class Null safety

Describes a chat message from a user

Annotations

Constructors

ChatMessage({@JsonKey(name: 'fromId') required ParticipantId fromParticipantId, @JsonKey(name: 'name') String? fromParticipantName, required DateTime date, DateTime? received, required String message, String? room, @Default(false) bool local, @JsonKey(fromJson: reactionsFromJson, ignore: true) @Default({}) Map<String, Set<ParticipantId>> reactions})
const
factory
ChatMessage.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $ChatMessageCopyWith<ChatMessage>
read-onlyinherited
date DateTime
read-onlyinherited
fromParticipantId ParticipantId
read-onlyinherited
fromParticipantName String?
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
hasReactions bool
read-only
local bool
read-onlyinherited
message String
read-onlyinherited
reactions Map<String, Set<ParticipantId>>
read-onlyinherited
received DateTime?
read-onlyinherited
room String?
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

isSameAs(ChatMessage other) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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