diff --git a/lib/util/shared_prefe_util.dart b/lib/util/shared_prefe_util.dart index 729a289..14f7159 100644 --- a/lib/util/shared_prefe_util.dart +++ b/lib/util/shared_prefe_util.dart @@ -49,4 +49,9 @@ class SharedPreferencesUtil { } return defaultVal; } + + static Future clean() async { + SharedPreferences prefs = await SharedPreferences.getInstance(); + return await prefs.clear(); + } }