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

@@ -160,7 +160,7 @@ class _LikeMePageState extends State<LikeMePage> {
Widget _buildItem(
ThemeData theme,
MsgLikeItem item,
ValueChanged<int?> onRemove,
ValueChanged<int> onRemove,
) {
return ListTile(
onTap: () {
@@ -199,7 +199,7 @@ class _LikeMePageState extends State<LikeMePage> {
context: context,
title: '删除',
content: '该条通知删除后,当有新点赞时会重新出现在列表,是否继续?',
onConfirm: () => onRemove(item.id),
onConfirm: () => onRemove(item.id!),
);
},
dense: true,