saveString static method

dynamic saveString(
  1. String key,
  2. String value
)

Implementation

static saveString(String key, String value) async {
  SharedPreferences sp = await SharedPreferences.getInstance();
  return sp.setString(key, value);
}