isAlreadySave static method
Implementation
static Future<bool> isAlreadySave() async {
bool res=false;
// if (kIsWeb) {
// res = window.localStorage.isNotEmpty;
// } else {
// await SharedPreferences.getInstance().then(
// (prefs) => {res = prefs.containsKey(Constants.EMAIL_STORAGE_KEY)});
// }
await SharedPreferences.getInstance().then(
(prefs) => {res = prefs.containsKey(Constants.EMAIL_STORAGE_KEY)});
log(_tag+", isAlreadySave= $res");
return res;
}