RequestChatEvent class

Is the type received by the chat stream
It contains the message to be sent to the chat
Example:

chat.stream.listen((event) {
  if (event is RequestChatEvent) {
    print(event.message.message);
  }
}
Inheritance
Available extensions

Constructors

RequestChatEvent(GroqMessage message)

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>

Available on ChatEvent, provided by the ChatEventExtension extension

toString() String
A string representation of this object.
inherited
when<T>({required T request(RequestChatEvent), required T response(ResponseChatEvent)}) → T
override

Operators

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