opt: non null (#1091)

* opt: type

* opt: type 2

* opt: type 3
This commit is contained in:
My-Responsitories
2025-08-23 18:25:41 +08:00
committed by GitHub
parent 6009668427
commit 3c34e43827
75 changed files with 400 additions and 362 deletions

View File

@@ -5,8 +5,8 @@ import 'package:PiliPlus/models_new/fans/data.dart';
class FanHttp {
static Future<LoadingState<FansData>> fans({
int? vmid,
int? pn,
required int vmid,
required int pn,
int ps = 20,
String? orderType,
}) async {
@@ -17,7 +17,7 @@ class FanHttp {
'pn': pn,
'ps': ps,
'order': 'desc',
'order_type': orderType,
'order_type': ?orderType,
},
);
if (res.data['code'] == 0) {