setDefaultSuggestion method

Future<void> setDefaultSuggestion(
  1. DefaultSuggestResult suggestion
)

Sets the description and styling for the default suggestion. The default suggestion is the text that is displayed in the first suggestion row underneath the URL bar. suggestion A partial SuggestResult object, without the 'content' parameter.

Implementation

Future<void> setDefaultSuggestion(DefaultSuggestResult suggestion) async {
  await promiseToFuture<void>(
      $js.chrome.omnibox.setDefaultSuggestion(suggestion.toJS));
}