setString method

Future<bool> setString({
  1. required String key,
  2. required String value,
})

Implementation

Future<bool> setString({
  required String key,
  required String value,
}) async {
  try {
    return await Database.getSharedPreferences().setString(key, value);
  } catch (_) {}

  return false;
}