MethodChannelBabylaiFlutter class

An implementation of BabylaiFlutterPlatform that uses method channels.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getLocale() Future<BabylAILocale>
Get current locale
override
getPlatformVersion() Future<String?>
override
initialize({required EnvironmentConfig environmentConfig, required BabylAILocale locale, Map<String, dynamic> userInfo = const {}, ThemeConfig? themeConfig}) Future<void>
Initialize BabylAI SDK
override
launchActiveChat({required String screenId, required BabylAITheme theme}) Future<void>
Launch active chat directly
override
launchChat({required String screenId, required BabylAITheme theme}) Future<void>
Launch BabylAI chat
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() Future<void>
Reset SDK
override
setTokenCallback() Future<void>
Set token callback
override
toString() String
A string representation of this object.
inherited
updateLocale(BabylAILocale locale) Future<void>
Update locale
override
updateTheme(BabylAITheme theme) Future<void>
Update theme
override

Operators

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