From e82a7f06c650a96e6d18c895e79ff690e4376b47 Mon Sep 17 00:00:00 2001 From: guoskyhero Date: Tue, 12 Mar 2019 19:17:33 -0400 Subject: [PATCH] =?UTF-8?q?Document=20that=20SearchDelegate.buildResults?= =?UTF-8?q?=20can=20be=20called=20multiple=20time=E2=80=A6=20(#26785)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/flutter/lib/src/material/search.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/flutter/lib/src/material/search.dart b/packages/flutter/lib/src/material/search.dart index 52e26091b0..a7bd14ebe5 100644 --- a/packages/flutter/lib/src/material/search.dart +++ b/packages/flutter/lib/src/material/search.dart @@ -108,6 +108,10 @@ abstract class SearchDelegate { /// The current value of [query] can be used to determine what the user /// searched for. /// + /// This method might be applied more than once to the same query. + /// If your [buildResults] method is computationally expensive, you may want + /// to cache the search results for one or more queries. + /// /// Typically, this method returns a [ListView] with the search results. /// When the user taps on a particular search result, [close] should be called /// with the selected result as argument. This will close the search page and