recordClick method Null safety

Future recordClick(
  1. Map<String, int> objects,
  2. {bool isSuggestionClick = false}
)

to record click analytics of a search request.

Set the isSuggestionClick to true to record suggestion click. For example,

searchController.recordClick({
  'cf827a07-60a6-43ef-ab93-e1f8e1e3e1a8': 2 // [_id]: click_position
}, true);

Implementation

Future recordClick(Map<String, int> objects,
    {bool isSuggestionClick = false}) async {
  return this.click(objects, queryId: this.queryId);
}