saveString static method

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

Implementation

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