Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
dom
2025-09-12 18:12:21 +08:00
committed by GitHub
parent da17725616
commit d6bff33d29
130 changed files with 1036 additions and 834 deletions

19
lib/utils/fav_utils.dart Normal file
View File

@@ -0,0 +1,19 @@
class FavUtils {
static bool isDefaultFav(int? attr) {
if (attr == null) {
return false;
}
return (attr & 2) == 0;
}
static String isPublicFavText(int? attr) {
if (attr == null) {
return '';
}
return isPublicFav(attr) ? '公开' : '私密';
}
static bool isPublicFav(int attr) {
return (attr & 1) == 0;
}
}