MethodChannelChatPlugin class
An implementation of ChatPluginPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- ChatPluginPlatform
- MethodChannelChatPlugin
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Cleans up resources used by the plugin.
override
-
initialize(
{required String domain, required String chatbotId}) → Future< void> -
Initializes the chat plugin with the necessary configuration.
override
-
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 and returns a stream of structured responses from the backend.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited