opt: func

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-07 14:41:25 +08:00
parent 286193f08f
commit dd6ff101d1
63 changed files with 181 additions and 180 deletions

View File

@@ -25,7 +25,7 @@ import 'package:webview_cookie_manager/webview_cookie_manager.dart';
class LoginUtils {
static final random = Random();
static Future onLoginMain() async {
static Future<void> onLoginMain() async {
final account = Accounts.main;
GrpcRepo.updateHeaders(account.accessKey);
try {
@@ -112,7 +112,7 @@ class LoginUtils {
}
}
static Future onLogoutMain() async {
static Future<void> onLogoutMain() async {
GrpcRepo.updateHeaders(null);
await Future.wait([