AIAssistantCardReceivedEvent class

Represents an AI Assistant card streaming event containing the full card payload.

Delivered when the AI agent has produced the card JSON. The UI can render the card optimistically using getCard(), keyed by cardId, before the persisted AIAssistantMessage arrives.

Extends AIAssistantBaseEvent and is delivered through the existing onAIAssistantEventReceived listener.

Inheritance

Constructors

AIAssistantCardReceivedEvent({String? streamMessageId, int? runId, String? threadId, String? cardId, Map<String, dynamic>? card, int? id, String? type, String? conversationId, String? parentId, Map<String, dynamic>? additionalProperties})
AIAssistantCardReceivedEvent.fromMap(Map<String, dynamic> map)
Creates an instance from a map.
factory

Properties

additionalProperties Map<String, dynamic>?
getter/setter pairinherited
card Map<String, dynamic>?
Raw card schema — feed directly to CometChatCardView renderer.
getter/setter pair
cardId String?
getter/setter pair
conversationId String?
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id int?
getter/setter pairinherited
parentId String?
getter/setter pairinherited
runId int?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streamMessageId String?
getter/setter pair
threadId String?
getter/setter pair
type String?
getter/setter pairinherited

Methods

getCard() Map<String, dynamic>?
Returns the raw card schema — feed to CometChatCardView renderer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the object to a map.
override
toString() String
A string representation of this object.
override

Operators

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