processActionRecipe method

  1. @override
bool processActionRecipe(
  1. ActionRecipe recipe,
  2. String regexTestString
)
override

Attempts to process a command for a recipe. Returns true if the regexTestString matches that of the processor currently running. The modifications are applied to the ActionRecipe provided.

Implementation

@override
bool processActionRecipe(ActionRecipe recipe, String regexTestString) {
  if (_matches.contains(regexTestString)) {
    recipe.name = AugnitoCommands.selectParagraph;
    recipe.nextPrevious = "next";
    recipe.chooseNumber = 1;
    recipe.receivedText = "";
    recipe.isCommand = true;
    recipe.selectFor = "gotoend";
    return true;
  }
  return false;
}