mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-04 00:59:50 +08:00
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user