fix fav sort

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-27 21:30:58 +08:00
parent 524b6bca1c
commit 47e3a47e00
3 changed files with 10 additions and 3 deletions

View File

@@ -66,4 +66,9 @@ extension ListExt<T> on List<T> {
}
return min;
}
T? getOrNull(int index) {
if (index < 0 || index >= length) return null;
return elementAt(index);
}
}