onStash method

void onStash(
  1. String searchTerm
)

Action to perform upon using the Stash context option.

Implementation

void onStash(String searchTerm) {
  appModel.addToStash(terms: [searchTerm]);
}