mirror of
https://github.com/esiur/esiur-dart.git
synced 2026-04-03 17:58:21 +00:00
version
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user