ChatPlugin class

The main class for interacting with the Chat Plugin.

Provides methods to initialize the connection, send messages, and receive streamed responses.

Constructors

ChatPlugin()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes of resources used by the plugin, such as active SSE connections.
initialize({required String domain, required String chatbotId}) → Future<void>
Initializes the chat plugin with the backend domain and chatbot ID.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
streamResponse({required String message, String? threadId}) → Stream<Map<String, dynamic>>
Sends a message to the chatbot and returns a stream of responses.
toString() → String
A string representation of this object.
inherited

Operators

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