INNER CODE UNIT · Dart
elementAt
foxsofter/flutter_thrio · lib/src/collection/registry_order_map.dart:40
MapEntry<K, V> elementAt(int index) => _list.elementAt(index);
Iterable<K> get keys => _list.map((it) => it.key);
Iterable<V> get values => _list.map((it) => it.value);
V first([final K? key]) => key == null
? _list.first.value
: _list.firstWhere((it) => it.key == key).value;
V? firstOrNull([final K? key]) => key == null
? _list.firstOrNull?.value
: _list.firstWhereOrNull((it) => it.key == key)?.value;
V firstWhere(bool Function(K k) predicate) =>
_list.firstWhere((it) => predicate(it.key)).value;
V? firstWhereOrNull(bool Function(K k) predicate) =>