MostVisitedURL class
An object encapsulating a most visited URL, such as the URLs on the new tab page.
class MostVisitedURL extends ChromeObject {
MostVisitedURL({String url, String title}) {
if (url != null) this.url = url;
if (title != null) this.title = title;
}
MostVisitedURL.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
/**
* The most visited URL.
*/
String get url => jsProxy['url'];
set url(String value) => jsProxy['url'] = value;
/**
* The title of the page
*/
String get title => jsProxy['title'];
set title(String value) => jsProxy['title'] = value;
}
Extends
ChromeObject > MostVisitedURL
Constructors
new MostVisitedURL({String url, String title}) #
Create a new instance of a ChromeObject, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
MostVisitedURL({String url, String title}) {
if (url != null) this.url = url;
if (title != null) this.title = title;
}
new MostVisitedURL.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
MostVisitedURL.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
String title #
The title of the page
String get title => jsProxy['title'];
set title(String value) => jsProxy['title'] = value;
String url #
The most visited URL.
String get url => jsProxy['url'];
set url(String value) => jsProxy['url'] = value;
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();