ChatInfo class
Chat info could be anything like announcement or in-chat notification
Constructors
- ChatInfo.new({MessageType type = MessageType.info, ChatUser author = const ChatUser(userID: ''), String? messageID, required int createdAt, required String info})
- Create the class
Properties
-
Message sender
getter/setter pairinherited
- createdAt ↔ int
-
Timestamp
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- info → String
-
Text information
final
-
key
↔ GlobalKey<
State< ?StatefulWidget> > -
Do not set this. Chatflow automatically sets it.
getter/setter pairinherited
- messageID ↔ String?
-
Message ID
getter/setter pairinherited
-
meta
↔ Map<
String, dynamic> ? -
Store other details you need here.
getter/setter pairinherited
- repliedTo ↔ Message?
-
Optional
The Message thatthis
message is repliedgetter/setter pairinherited - 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 pairinherited - type ↔ MessageType
-
Internal Message type. Must be one of the types in types file
getter/setter pairinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited