BotnoiClient class
This class represents the client interacting with the Botnoi Chatbot Server.
Constructors
- BotnoiClient.new({required String key})
Properties
- didFinishSuccessfully ↔ bool
-
Check if the last function finished successfully.
getter/setter pair
- endpoint ↔ String
-
The endpoint of the Botnoi Chatbot Server.
getter/setter pair
-
error
↔ StreamController<
String> -
This is the error stream. Register a callback function to be called when errors occured in any function in this package.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- key ↔ String
-
The API key from botnoi developer platform.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
finishedFailed(
) → void - Manually set the status of the last function called to failed.
-
finishedSuccessfully(
) → void - Manually set the status of the last function called to success.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setErrorCallback(
void onError(String error)) → dynamic - Register a callback function to be called when errors occured in any function in this package.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited