getString method

String? getString(
  1. Feature feature
)

Retrieves a string value from the shared preferences based on the provided feature key.

The feature parameter specifies the feature for which the string value is retrieved.

Returns the string value associated with the feature key, or null if the key does not exist.

Implementation

String? getString(Feature feature) {
  return _sharedPreferences.getString(feature.key);
}