Message class abstract

Base Message class and should'nt be used directly. Can be extended to create other message types

Implementers

Constructors

Message.new({required MessageType type, required ChatUser author, required int createdAt, String? messageID, DeliveryStatus? status, Map<String, dynamic>? meta, Message? repliedTo})
Create the class

Properties

author ChatUser
Message sender
getter/setter pair
createdAt int
Timestamp
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
key GlobalKey<State<StatefulWidget>>?
Do not set this. Chatflow automatically sets it.
getter/setter pair
messageID String?
Message ID
getter/setter pair
meta Map<String, dynamic>?
Store other details you need here.
getter/setter pair
repliedTo Message?
Optional The Message that this message is replied
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status DeliveryStatus?
Delivery status could be any of the follow sending, sent, delivered, read
getter/setter pair
type MessageType
Internal Message type. Must be one of the types in types file
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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