putListObject method

Future<bool> putListObject(
  1. String newListObject,
  2. String key
)

Implementation

Future<bool> putListObject(String newListObject, String key) async {
  final sharedPrefs = await _instance;
  if (sharedPrefs.preferences.containsKey(key)) {
    sharedPrefs.preferences.setString(key, newListObject);
    return true;
  }
  return false;
}