Commit e82a7f06 authored by guoskyhero's avatar guoskyhero Committed by Hans Muller

Document that SearchDelegate.buildResults can be called multiple time… (#26785)

parent a32810bc
...@@ -108,6 +108,10 @@ abstract class SearchDelegate<T> { ...@@ -108,6 +108,10 @@ abstract class SearchDelegate<T> {
/// The current value of [query] can be used to determine what the user /// The current value of [query] can be used to determine what the user
/// searched for. /// 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. /// Typically, this method returns a [ListView] with the search results.
/// When the user taps on a particular search result, [close] should be called /// 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 /// with the selected result as argument. This will close the search page and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment