recordClick method Null safety
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);
}