2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2026-04-03 17:58:21 +00:00
This commit is contained in:
2024-05-02 23:44:19 +03:00
parent 145726153f
commit 8a30c92e19
7 changed files with 172 additions and 92 deletions

View File

@@ -74,10 +74,10 @@ class AutoList<T, ST> extends IDestructible with IterableMixin<T> {
}
T? first(bool Function(T element) selector) {
final res = _list.where(selector);
return res.isEmpty ? null : res.first;
}
// T? first(bool Function(T element) selector) {
// final res = _list.where(selector);
// return res.isEmpty ? null : res.first;
// }
/// <summary>
/// Add an array of items to the list

View File

@@ -79,7 +79,7 @@ class KeyList<KT, T> extends IEventHandler with MapMixin<KT, T> {
}
T? first(bool Function(T element) selector) {
final res = _map.where(selector);
final res = _map.values.where(selector);
return res.isEmpty ? null : res.first;
}