MessageEvent class Null safety

Represents message event

Inheritance
Annotations

Constructors

MessageEvent({required int messageId, required ChannelType channelType, required String channelUrl, bool forceUpdateLastMessage = false, bool silent = false, Sender? sender, String? requestId, MentionType? mentionType, List<User>? mentionedUsers, List<Thumbnail>? thumbnails, Map<String, dynamic>? oldValues})
MessageEvent.fromJson(Map<String, dynamic> json)
factory

Properties

channelType ChannelType
@JsonKey(unknownEnumValue: ChannelType.group), final
channelUrl String
final
forceUpdateLastMessage bool
@JsonKey(defaultValue: false), final
hashCode int
The hash code for this object. [...]
read-only, inherited
mentionedUsers List<User>?
final
mentionType MentionType?
@JsonKey(unknownEnumValue: MentionType.users), final
messageId int
@JsonKey(name: 'msg_id'), final
oldValues Map<String, dynamic>?
final
requestId String?
@JsonKey(name: 'req_id'), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sender Sender?
@JsonKey(name: 'user'), final
silent bool
@JsonKey(defaultValue: false), final
thumbnails List<Thumbnail>?
final

Methods

hasChangedMentionType() MentionType?
mentionedContains(User user) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
previousMentionedContains(User user) bool
toString() String
A string representation of this object. [...]
inherited

Operators

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