HistoryItem class
An object encapsulating one result of a history query.
class HistoryItem extends ChromeObject { HistoryItem({String id, String url, String title, var lastVisitTime, int visitCount, int typedCount}) { if (id != null) this.id = id; if (url != null) this.url = url; if (title != null) this.title = title; if (lastVisitTime != null) this.lastVisitTime = lastVisitTime; if (visitCount != null) this.visitCount = visitCount; if (typedCount != null) this.typedCount = typedCount; } HistoryItem.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); /** * The unique identifier for the item. */ String get id => jsProxy['id']; set id(String value) => jsProxy['id'] = value; /** * The URL navigated to by a user. */ String get url => jsProxy['url']; set url(String value) => jsProxy['url'] = value; /** * The title of the page when it was last loaded. */ String get title => jsProxy['title']; set title(String value) => jsProxy['title'] = value; /** * When this page was last loaded, represented in milliseconds since the * epoch. */ dynamic get lastVisitTime => jsProxy['lastVisitTime']; set lastVisitTime(var value) => jsProxy['lastVisitTime'] = jsify(value); /** * The number of times the user has navigated to this page. */ int get visitCount => jsProxy['visitCount']; set visitCount(int value) => jsProxy['visitCount'] = value; /** * The number of times the user has navigated to this page by typing in the * address. */ int get typedCount => jsProxy['typedCount']; set typedCount(int value) => jsProxy['typedCount'] = value; }
Extends
ChromeObject > HistoryItem
Constructors
new HistoryItem({String id, String url, String title, lastVisitTime, int visitCount, int typedCount}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
HistoryItem({String id, String url, String title, var lastVisitTime, int visitCount, int typedCount}) { if (id != null) this.id = id; if (url != null) this.url = url; if (title != null) this.title = title; if (lastVisitTime != null) this.lastVisitTime = lastVisitTime; if (visitCount != null) this.visitCount = visitCount; if (typedCount != null) this.typedCount = typedCount; }
new HistoryItem.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
HistoryItem.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
String id #
The unique identifier for the item.
String get id => jsProxy['id'];
set id(String value) => jsProxy['id'] = value;
var lastVisitTime #
When this page was last loaded, represented in milliseconds since the epoch.
dynamic get lastVisitTime => jsProxy['lastVisitTime'];
set lastVisitTime(var value) => jsProxy['lastVisitTime'] = jsify(value);
String title #
The title of the page when it was last loaded.
String get title => jsProxy['title'];
set title(String value) => jsProxy['title'] = value;
int typedCount #
The number of times the user has navigated to this page by typing in the address.
int get typedCount => jsProxy['typedCount'];
set typedCount(int value) => jsProxy['typedCount'] = value;
String url #
The URL navigated to by a user.
String get url => jsProxy['url'];
set url(String value) => jsProxy['url'] = value;
int visitCount #
The number of times the user has navigated to this page.
int get visitCount => jsProxy['visitCount'];
set visitCount(int value) => jsProxy['visitCount'] = value;
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();