This website works better with JavaScript.
Home
Explore
Help
Sign In
flutter
/
zhiying_comm
Watch
4
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
95
Wiki
Activity
Browse Source
1.添加缓存清楚方法
tags/0.0.9+9
“yanghuaxuan”
3 years ago
parent
6549c54338
commit
719a23283b
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
lib/util/shared_prefe_util.dart
+ 5
- 0
lib/util/shared_prefe_util.dart
View File
@@ -49,4 +49,9 @@ class SharedPreferencesUtil {
}
return defaultVal;
}
static Future<bool> clean() async {
SharedPreferences prefs = await SharedPreferences.getInstance();
return await prefs.clear();
}
}
Write
Preview
Loading…
Cancel
Save