| OLD | NEW |
| (Empty) |
| 1 part of dart.collection; | |
| 2 abstract class LinkedHashMap<K, V> implements HashMap<K, V> {external factory L
inkedHashMap({ | |
| 3 bool equals(K key1, K key2), int hashCode(K key), bool isValidKey(potentialKey
)} | |
| 4 ); | |
| 5 external factory LinkedHashMap.identity(); | |
| 6 factory LinkedHashMap.from(Map other) { | |
| 7 LinkedHashMap<K, V> result = new LinkedHashMap<K, V>(); | |
| 8 other.forEach((k, v) { | |
| 9 result[DEVC$RT.cast(k, dynamic, K, "CompositeCast", """line 74, column 35 of
dart:collection/linked_hash_map.dart: """, k is K, false)] = DEVC$RT.cast(v, dy
namic, V, "CompositeCast", """line 74, column 40 of dart:collection/linked_hash_
map.dart: """, v is V, false); | |
| 10 } | |
| 11 ); | |
| 12 return result; | |
| 13 } | |
| 14 factory LinkedHashMap.fromIterable(Iterable iterable, { | |
| 15 K key(element), V value(element)} | |
| 16 ) { | |
| 17 LinkedHashMap<K, V> map = new LinkedHashMap<K, V>(); | |
| 18 Maps._fillMapWithMappedIterable(map, iterable, key, value); | |
| 19 return map; | |
| 20 } | |
| 21 factory LinkedHashMap.fromIterables(Iterable<K> keys, Iterable<V> values) { | |
| 22 LinkedHashMap<K, V> map = new LinkedHashMap<K, V>(); | |
| 23 Maps._fillMapWithIterables(map, keys, values); | |
| 24 return map; | |
| 25 } | |
| 26 } | |
| OLD | NEW |