diff --git a/packages/flutter/lib/src/foundation/collections.dart b/packages/flutter/lib/src/foundation/collections.dart index 7a0be1b071..e1e1499d85 100644 --- a/packages/flutter/lib/src/foundation/collections.dart +++ b/packages/flutter/lib/src/foundation/collections.dart @@ -10,10 +10,10 @@ /// the same length, and contain the same members. Returns false otherwise. /// Order is not compared. /// -/// If the elements are maps, lists, sets, or other collections/composite objects, -/// then the contents of those elements are not compared element by element unless their -/// equality operators ([Object.==]) do so. -/// For checking deep equality, consider using [DeepCollectionEquality] class. +/// If the elements are maps, lists, sets, or other collections/composite +/// objects, then the contents of those elements are not compared element by +/// element unless their equality operators ([Object.==]) do so. For checking +/// deep equality, consider using the [DeepCollectionEquality] class. /// /// See also: /// @@ -43,10 +43,10 @@ bool setEquals(Set? a, Set? b) { /// the same length, and contain the same members in the same order. Returns /// false otherwise. /// -/// If the elements are maps, lists, sets, or other collections/composite objects, -/// then the contents of those elements are not compared element by element unless their -/// equality operators ([Object.==]) do so. -/// For checking deep equality, consider using [DeepCollectionEquality] class. +/// If the elements are maps, lists, sets, or other collections/composite +/// objects, then the contents of those elements are not compared element by +/// element unless their equality operators ([Object.==]) do so. For checking +/// deep equality, consider using the [DeepCollectionEquality] class. /// /// See also: /// @@ -76,10 +76,10 @@ bool listEquals(List? a, List? b) { /// the same length, and contain the same keys associated with the same values. /// Returns false otherwise. /// -/// If the elements are maps, lists, sets, or other collections/composite objects, -/// then the contents of those elements are not compared element by element unless their -/// equality operators ([Object.==]) do so. -/// For checking deep equality, consider using [DeepCollectionEquality] class. +/// If the elements are maps, lists, sets, or other collections/composite +/// objects, then the contents of those elements are not compared element by +/// element unless their equality operators ([Object.==]) do so. For checking +/// deep equality, consider using the [DeepCollectionEquality] class. /// /// See also: /// @@ -103,7 +103,6 @@ bool mapEquals(Map? a, Map? b) { return true; } - /// Returns the position of `value` in the `sortedList`, if it exists. /// /// Returns `-1` if the `value` is not in the list. Requires the list items