mod: specify list type

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-11 21:31:59 +08:00
parent da35cf471e
commit 9ce9940306
18 changed files with 61 additions and 47 deletions

View File

@@ -120,7 +120,8 @@ class LaterController extends MultiSelectController<Map, HotVideoItemModel> {
TextButton(
onPressed: () async {
Get.back();
_onDelete(((loadingState.value as Success).response as List)
_onDelete(((loadingState.value as Success).response
as List<HotVideoItemModel>)
.where((e) => e.checked == true)
.toList());
},
@@ -132,9 +133,9 @@ class LaterController extends MultiSelectController<Map, HotVideoItemModel> {
);
}
void _onDelete(List result) async {
void _onDelete(List<HotVideoItemModel> result) async {
SmartDialog.showLoading(msg: '请求中');
List aids = result.map((item) => item.aid).toList();
List<int?> aids = result.map((item) => item.aid).toList();
dynamic res = await UserHttp.toViewDel(aids: aids);
if (res['status']) {
Set<HotVideoItemModel> remainList =