openResultFromHistory method

Future<void> openResultFromHistory(
  1. {required DictionarySearchResult result}
)

A helper function for showing a result already in dictionary history.

Implementation

Future<void> openResultFromHistory({
  required DictionarySearchResult result,
}) async {
  await Navigator.push(
    _navigatorKey.currentContext!,
    MaterialPageRoute(
      builder: (context) => RecursiveDictionaryHistoryPage(
        result: result,
      ),
    ),
  );
}