Skip to content

Commit 2f6a7d2

Browse files
committed
name and make pair constructor accessible
1 parent 328025b commit 2f6a7d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/lib/core/map.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ abstract interface class Map<K, V> {
478478
/// ]);
479479
/// print(map); // {1: A, 2: B, 3: C, 4: D}
480480
/// ```
481-
extension type const MapEntry<K, V>._((K, V) asPair) implements Object {
481+
extension type const MapEntry<K, V>.fromPair((K, V) asPair) implements Object {
482482
/// The key of the entry.
483483
///
484484
/// ```dart
@@ -498,5 +498,5 @@ extension type const MapEntry<K, V>._((K, V) asPair) implements Object {
498498
V get value => asPair.$2;
499499

500500
/// Creates an entry with [key] and [value].
501-
const MapEntry(K key, V value): this._((key, value));
501+
const MapEntry(K key, V value): this.fromPair((key, value));
502502
}

0 commit comments

Comments
 (0)