BotnoiCollector class
The collector for collecting chatbot assets. This helps you to manage your bots, intents and objects and make them accessible from anywhere in your application.
Constructors
- BotnoiCollector.new({required bool implicitCollecting})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- implicitCollecting → bool
-
A boolean value that indicates whether the collector should automatically load the assets from the server if they are not collected.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearCollection(
) → void - Clear all collected assets.
-
collectBot(
Bot bot) → void - Collect a bot into the collector.
-
collectG<
G extends BotData> (G data, {required String identifier}) → void - Collect other types of chatbot data into the collector.
-
collectIntent(
BotIntent intent) → void - Collect an intent into the collector.
-
collectObject(
BotObject object) → void - Collect an object into the collector.
-
getBot(
{String? botName}) → Future< Bot?> - Get the collected bot.
-
getG<
G extends BotData> (String identifier) → G? - Get other types of chatbot data from the collector.
-
getIntent(
String name, {String? botName}) → Future< BotIntent?> - Get the collected intent by name.
-
getObject(
BotObjectType type, String name, {String? botName}) → Future< BotObject?> - Get the collected object by type and name.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reloadBot(
) → Future< void> - Reload the collected bot. The bot has to be collected first.
-
reloadIntent(
String name, {String? botName}) → Future< void> - Reload an intent in the collection. The intent has to be collected first.
-
reloadObject(
BotObjectType type, String name, {String? botName}) → Future< void> - Reload an object in the collection. The object has to be collected first.
-
toString(
) → String -
A string representation of this object.
inherited
-
trashBot(
) → void - Trash the collected bot. If no bot is collected, nothing will happen.
-
trashIntent(
String name, {String? botName}) → void - Trash an intent from the collection. If the intent is not collected, nothing will happen.
-
trashObject(
BotObjectType type, String name, {String? botName}) → void - Trash an object from the collection. If the object is not collected, nothing will happen.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited