saveString static method

Future<bool> saveString(
  1. String key,
  2. String value
)

Implementation

static Future<bool> saveString(String key, String value) async {
  await prepareSp();
  return prefs!.setString(key, value);
}