TabsUpdateParams class
class TabsUpdateParams extends ChromeObject {
TabsUpdateParams({String url, bool active, bool highlighted, bool pinned, int openerTabId}) {
if (url != null) this.url = url;
if (active != null) this.active = active;
if (highlighted != null) this.highlighted = highlighted;
if (pinned != null) this.pinned = pinned;
if (openerTabId != null) this.openerTabId = openerTabId;
}
TabsUpdateParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
/**
* A URL to navigate the tab to.
*/
String get url => jsProxy['url'];
set url(String value) => jsProxy['url'] = value;
/**
* Whether the tab should be active. Does not affect whether the window is
* focused (see [windows.update]).
*/
bool get active => jsProxy['active'];
set active(bool value) => jsProxy['active'] = value;
/**
* Adds or removes the tab from the current selection.
*/
bool get highlighted => jsProxy['highlighted'];
set highlighted(bool value) => jsProxy['highlighted'] = value;
/**
* Whether the tab should be pinned.
*/
bool get pinned => jsProxy['pinned'];
set pinned(bool value) => jsProxy['pinned'] = value;
/**
* The ID of the tab that opened this tab. If specified, the opener tab must
* be in the same window as this tab.
*/
int get openerTabId => jsProxy['openerTabId'];
set openerTabId(int value) => jsProxy['openerTabId'] = value;
}
Extends
ChromeObject > TabsUpdateParams
Constructors
new TabsUpdateParams({String url, bool active, bool highlighted, bool pinned, int openerTabId}) #
Create a new instance of a ChromeObject, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
TabsUpdateParams({String url, bool active, bool highlighted, bool pinned, int openerTabId}) {
if (url != null) this.url = url;
if (active != null) this.active = active;
if (highlighted != null) this.highlighted = highlighted;
if (pinned != null) this.pinned = pinned;
if (openerTabId != null) this.openerTabId = openerTabId;
}
new TabsUpdateParams.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
TabsUpdateParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
bool active #
Whether the tab should be active. Does not affect whether the window is
focused (see windows.update).
bool get active => jsProxy['active'];
set active(bool value) => jsProxy['active'] = value;
bool highlighted #
Adds or removes the tab from the current selection.
bool get highlighted => jsProxy['highlighted'];
set highlighted(bool value) => jsProxy['highlighted'] = value;
int openerTabId #
The ID of the tab that opened this tab. If specified, the opener tab must be in the same window as this tab.
int get openerTabId => jsProxy['openerTabId'];
set openerTabId(int value) => jsProxy['openerTabId'] = value;
bool pinned #
Whether the tab should be pinned.
bool get pinned => jsProxy['pinned'];
set pinned(bool value) => jsProxy['pinned'] = value;
String url #
A URL to navigate the tab to.
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();