saveString static method
Save a string instance to the shared preferences
Implementation
static Future<void> saveString(String key, String data) async {
final SharedPreferences prefs = await SharedPreferences.getInstance();
await prefs.setString(key, data);
}