BotIntentOperator class

The operator for the intent.

Constructors

BotIntentOperator.of(BotIntent _intent, Bot _bot)
Create a new intent operator.

Properties

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

Methods

deleteAllKeywords() Future<void>
Delete all keywords that the intent has been trained with.
deleteAllReactions() Future<void>
Delete all reactions that the intent has been trained with.
deleteKeywords({required List<BotIntentKeyword> keywords}) Future<void>
Delete keywords that the intent has been trained with.
deleteReactions({required List<BotIntentReaction> reactions}) Future<void>
Delete reactions that the intent has been trained with.
deriveFromIntent({required BotIntent source, Map<String, String> mapping = const {}, bool overwrite = true}) Future<void>
Derive this intent from another intent. This will copy all the keywords and reactions from the source intent to this intent.
findKeywords() Future<List<BotIntentKeyword>?>
Find all keywords that the intent has been trained with.
findKeywordWithIndex({required int index}) Future<BotIntentKeyword?>
Find a keyword that the intent has been trained with by its index.
findPrimaryKeyword() Future<BotIntentKeyword?>
Find the first keyword in this intent.
findPrimaryReaction() Future<BotIntentReaction?>
Find the first reaction in this intent.
findReaction() Future<List<BotIntentReaction>?>
Find all reactions that the intent has been trained with.
findReactionWithIndex({required int index}) Future<BotIntentReaction?>
Find a reaction that the intent has been trained with by its index.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
trainKeyword({required BotIntentKeyword keyword}) Future<void>
Train the intent with a keyword.
trainMultiKeyword({List<BotIntentKeyword>? keywords, List<String>? strings}) Future<void>
Train the intent with multiple keywords.
trainMultiReaction({List<BotIntentReaction>? reactions, List<String>? reactionStrings}) Future<void>
Train the intent with multiple reactions.
trainReaction({required BotIntentReaction reaction}) Future<void>
Train the intent with a reaction.
updateKeyword({required BotIntentKeyword keyword}) Future<void>
Update a keyword that the intent has been trained with.
updateReaction({required BotIntentReaction reaction}) Future<void>
Update a reaction that the intent has been trained with.

Operators

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