setLastSelectedDictionaryFormat method
- DictionaryFormat dictionaryFormat
Persist a new last selected dictionary format. This is called when the user changes the import format in the dictionary menu.
Implementation
Future<void> setLastSelectedDictionaryFormat(
DictionaryFormat dictionaryFormat) async {
String lastDictionaryFormatName = dictionaryFormat.uniqueKey;
await _preferences.put(
'last_selected_dictionary_format', lastDictionaryFormatName);
}