daily pastebin goal
78%
SHARE
TWEET

Untitled

a guest Oct 16th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Future<String> load(SharedPreferences prefs, String fileName) async {
  2.     prefs = await SharedPreferences.getInstance();
  3.     String jsonString = prefs.getString(fileName) ?? "";
  4.     if (jsonString.isNotEmpty) {
  5.       return jsonString;
  6.     }else{
  7.       return ...
  8.     }
  9.   }
  10.    
  11. return Future.value('');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top