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

@@ -61,7 +61,7 @@ class WhisperDetailController
}
// 消息标记已读
Future ackSessionMsg(int? msgSeqno) async {
Future<void> ackSessionMsg(int? msgSeqno) async {
var res = await MsgHttp.ackSessionMsg(
talkerId: talkerId,
ackSeqno: msgSeqno,
@@ -71,7 +71,7 @@ class WhisperDetailController
}
}
Future sendMsg({
Future<void> sendMsg({
required String message,
Map? picMsg,
required VoidCallback onClearText,

View File

@@ -321,7 +321,7 @@ class _WhisperDetailPageState
Widget? get customPanel => EmotePanel(onChoose: onChooseEmote);
@override
Future onCustomPublish({required String message, List? pictures}) {
Future<void> onCustomPublish({required String message, List? pictures}) {
throw UnimplementedError();
}
}