Skip to content

Commit 3729f0d

Browse files
MetalDentcommit-bot@chromium.org
authored andcommitted
Update list.dart
This PR fixes #37262. Closes #37436 #37436 GitOrigin-RevId: ee7cbdf Change-Id: I6fcea0f9bec1b52e66d1674e0fa0dec1bdcdf4d4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108180 Reviewed-by: Lasse R.H. Nielsen <[email protected]> Commit-Queue: Lasse R.H. Nielsen <[email protected]>
1 parent 528292b commit 3729f0d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sdk/lib/core/list.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,4 +719,13 @@ abstract class List<E> implements EfficientLengthIterable<E> {
719719
* map.keys.toList(); // [0, 1, 2, 3]
720720
*/
721721
Map<int, E> asMap();
722+
723+
/**
724+
* Whether this list is equal to [other].
725+
*
726+
* Lists are, by default, only equal to themselves.
727+
* Even if [other] is also a list, the equality comparison
728+
* does not compare the elements of the two lists.
729+
*/
730+
bool operator ==(Object other);
722731
}

0 commit comments

Comments
 (0)