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

@@ -294,7 +294,11 @@ class PageUtils {
);
}
static Future<void> pushDynFromId({id, rid, bool off = false}) async {
static Future<void> pushDynFromId({
String? id,
Object? rid,
bool off = false,
}) async {
SmartDialog.showLoading();
var res = await DynamicsHttp.dynamicDetail(
id: id,
@@ -308,7 +312,7 @@ class PageUtils {
toDupNamed(
'/articlePage',
parameters: {
'id': id,
'id': id!,
'type': 'opus',
},
off: off,
@@ -780,7 +784,7 @@ class PageUtils {
static EpisodeItem findEpisode(
List<EpisodeItem> episodes, {
dynamic epId,
Object? epId,
bool isPgc = true,
}) {
// epId episode -> progress episode -> first episode
@@ -795,8 +799,8 @@ class PageUtils {
}
static Future<void> viewPgc({
dynamic seasonId,
dynamic epId,
Object? seasonId,
Object? epId,
String? progress,
}) async {
try {
@@ -884,8 +888,8 @@ class PageUtils {
}
static Future<void> viewPugv({
dynamic seasonId,
dynamic epId,
Object? seasonId,
Object? epId,
int? aid,
}) async {
try {