Message class

Constructors

Message({required MessageId? id, required String body, required String type, required int t, required String notifyName, required String from, required String to, required String self, required bool isNewMsg, required bool star, required bool kicNotified, required bool recvFresh, required bool isFromTemplate, required bool pollInvalidated, required bool broadcast, required bool isForwarded, required bool hasReaction, required bool ephemeralOutOfSync, required bool productHeaderImageRejected, required int lastPlaybackProgress, required bool isDynamicReplyButtonsMsg, required bool isMdHistoryMsg, required int stickerSentTs, required bool requiresDirectConnection, required bool pttForwardedFeaturesEnabled, required String caption})
Message.fromJson(Map<String, dynamic> json)
factory

Properties

body String
final
broadcast bool
final
caption String
final
ephemeralOutOfSync bool
final
from String
final
hashCode int
The hash code for this object.
no setterinherited
hasReaction bool
final
id MessageId?
final
isDynamicReplyButtonsMsg bool
final
isForwarded bool
final
isFromTemplate bool
final
isMdHistoryMsg bool
final
isNewMsg bool
final
kicNotified bool
final
lastPlaybackProgress int
final
notifyName String
final
pollInvalidated bool
final
productHeaderImageRejected bool
final
pttForwardedFeaturesEnabled bool
final
recvFresh bool
final
requiresDirectConnection bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
self String
final
star bool
final
stickerSentTs int
final
t int
final
to String
final
type String
final

Methods

copyWith({MessageId? id, String? body, String? type, int? t, String? notifyName, String? from, String? to, String? self, int? ack, bool? isNewMsg, bool? star, bool? kicNotified, bool? recvFresh, bool? isFromTemplate, bool? pollInvalidated, bool? broadcast, bool? isForwarded, bool? hasReaction, bool? ephemeralOutOfSync, bool? productHeaderImageRejected, int? lastPlaybackProgress, bool? isDynamicReplyButtonsMsg, bool? isMdHistoryMsg, int? stickerSentTs, bool? requiresDirectConnection, bool? pttForwardedFeaturesEnabled, String? caption}) Message
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

parse(dynamic data) List<Message>
Because Mobile platforms returns data as list and desktop returns as map , so to unify the data