setString static method

Future setString(
  1. String key,
  2. String v
)

Implementation

static Future setString(String key, String v) async {
  SharedPreferences prefs = await SharedPreferences.getInstance();
  await prefs.setString(key, v);
  //  Log.k( "save class",  "setString() - key: " + key + " /v: " + v );
}