lastSelectedMappingName property
Get the last selected mapping's name from persisted preferences. This is faster than getting the mapping specifically from the database.
Implementation
String get lastSelectedMappingName {
String mappingName = _preferences.get('last_selected_mapping',
defaultValue: mappings.first.label);
return mappingName;
}