removeFromStash method

Future<void> removeFromStash(
  1. {required String term}
)

Remove a certain term from the Stash.

Implementation

Future<void> removeFromStash({
  required String term,
}) async {
  removeFromSearchHistory(
    historyKey: stashKey,
    searchTerm: term,
  );

  Fluttertoast.showToast(
    msg: t.stash_clear_single(term: term),
    toastLength: Toast.LENGTH_SHORT,
    gravity: ToastGravity.BOTTOM,
  );
}