onSearch method

void onSearch(
  1. String searchTerm,
  2. {String? sentence = ''}
)

Action to perform upon using the Search context option.

Implementation

void onSearch(String searchTerm, {String? sentence = ''}) async {
  await appModel.openRecursiveDictionarySearch(
    searchTerm: searchTerm,
    killOnPop: false,
  );
}