setValue abstract method

Future<bool> setValue(
  1. SharedPreferences preferences,
  2. String key,
  3. T value
)

Set a value for the key by using the preferences.

Returns true if value was successfully set, otherwise false.

Implementation

Future<bool> setValue(SharedPreferences preferences, String key, T value);