DefaultSuggestResult constructor

DefaultSuggestResult({
  1. required String description,
  2. List<MatchClassification>? descriptionStyles,
})

Implementation

DefaultSuggestResult({
  /// The text that is displayed in the URL dropdown. Can contain XML-style
  /// markup for styling. The supported tags are 'url' (for a literal URL),
  /// 'match' (for highlighting text that matched what the user's query), and
  /// 'dim' (for dim helper text). The styles can be nested, eg.
  /// <dim><match>dimmed match</match></dim>.
  required String description,

  /// An array of style ranges for the description, as provided by the
  /// extension.
  List<MatchClassification>? descriptionStyles,
}) : _wrapped = $js.DefaultSuggestResult(
        description: description,
        descriptionStyles: descriptionStyles?.toJSArray((e) => e.toJS),
      );