YmFlutterIntegration class

Constructors

YmFlutterIntegration()
A singleton class for which configurations are set only once and referred to get same object again and again
factory

Properties

botId String?
getter/setter pair
botUrl String?
getter/setter pair
context BuildContext?
getter/setter pair
enableHistory bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
myBotConfig BotConfig
getter/setter pair
myBotPayload BotPayload
getter/setter pair
payloadJSON String
getter/setter pair
postImageUrl String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendData bool
getter/setter pair
speechResult String?
getter/setter pair
speechServiceAvailability bool
getter/setter pair
stt ↔ SpeechToText
getter/setter pair
webViewController ↔ WebViewController
getter/setter pair

Methods

addPayload({required String key, required String value}) → void
Adds the payload to the chatbot. Will send/update the payload once updatePayload is called
clearPayload() → void
Clear existing payload
closeBot() → void
Closes the chatbot and stops listening the bot events
getBotWidget({required BotEventListener botEventListener}) Widget
Widget returns the bot widget itself Function(BotEvent) BotEventListener listens to the events emitted from the chatbot
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendEvent({required String data}) → void
setConfig({required String botId, required BuildContext context, bool? enableHistory, bool? enableSpeech, bool? enableCloseButton}) → void
setConfig sets the default configuration for the chatbot.
toString() String
A string representation of this object.
inherited
updatePayload() → void
updates about the current payload to the chatbot

Operators

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