Retrieve a value associated with the key by using the preferences.
key
preferences
@override String? getValue(preferences, key) => preferences.getString(key);