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 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
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, 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
Static Methods
-
parse(dynamic data)
→ List<Message>
-
Because Mobile platforms returns data as list
and desktop returns as map , so to unify the data