mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: home: show unread badge
Closes #107 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -28,6 +28,9 @@ extension ListExt<T> on List<T>? {
|
||||
if (isNullOrEmpty) {
|
||||
return null;
|
||||
}
|
||||
if (index < 0 || index >= this!.length) {
|
||||
return null;
|
||||
}
|
||||
return this![index];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user