setLastSelectedModelName method
- String modelName
Persist a new last selected model name. This is called when the user changes the selected model to map in the profiles menu.
Implementation
Future<void> setLastSelectedModelName(String modelName) async {
await _preferences.put('last_selected_model', modelName);
notifyListeners();
}