From 14c2153b31d49650846b963f504ccd4526b5b497 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Thu, 20 Jul 2023 13:37:04 -0700 Subject: [PATCH] Trivial grammar and wrapping fix for docs (#130955) --- .../lib/src/foundation/collections.dart | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) 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