opt filter dyn

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-27 21:01:16 +08:00
parent 8e26a7bc9d
commit b32c1871ae
3 changed files with 16 additions and 31 deletions

View File

@@ -13,6 +13,7 @@ class DynamicsDataModel {
List<DynamicItemModel>? items;
String? offset;
int? total;
bool? loadNext;
static String _getMatchText(DynamicItemModel item) {
final moduleDynamic = item.modules.moduleDynamic;
@@ -79,6 +80,10 @@ class DynamicsDataModel {
}
items!.add(item);
}
// filtered all
if (items!.isEmpty) {
loadNext = true;
}
}
offset = json['offset'];