SuggestResult class
A suggest result.
class SuggestResult extends ChromeObject {
SuggestResult({String content, String description}) {
if (content != null) this.content = content;
if (description != null) this.description = description;
}
SuggestResult.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
/**
* The text that is put into the URL bar, and that is sent to the extension
* when the user chooses this entry.
*/
String get content => jsProxy['content'];
set content(String value) => jsProxy['content'] = value;
/**
* 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>.
*/
String get description => jsProxy['description'];
set description(String value) => jsProxy['description'] = value;
}
Extends
ChromeObject > SuggestResult
Constructors
new SuggestResult({String content, String description}) #
Create a new instance of a ChromeObject, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
SuggestResult({String content, String description}) {
if (content != null) this.content = content;
if (description != null) this.description = description;
}
new SuggestResult.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
SuggestResult.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
String content #
The text that is put into the URL bar, and that is sent to the extension when the user chooses this entry.
String get content => jsProxy['content'];
set content(String value) => jsProxy['content'] = value;
String description #
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>.
String get description => jsProxy['description'];
set description(String value) => jsProxy['description'] = value;
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();