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

@@ -34,7 +34,7 @@ class SysMsgController
return super.onRefresh();
}
Future<void> onRemove(dynamic id, int index) async {
Future<void> onRemove(Object id, int index) async {
try {
var res = await MsgHttp.delSysMsg(id);
if (res['status']) {

View File

@@ -83,7 +83,7 @@ class _SysMsgPageState extends State<SysMsgPage> {
context: context,
title: '确定删除该通知?',
onConfirm: () =>
_sysMsgController.onRemove(item.id, index),
_sysMsgController.onRemove(item.id!, index),
),
title: Text(
"${item.title}",