Tab class

Constructors

Tab({int? id, required int index, required int groupId, required int windowId, int? openerTabId, required bool selected, double? lastAccessed, required bool highlighted, required bool active, required bool pinned, bool? audible, required bool discarded, required bool autoDiscardable, MutedInfo? mutedInfo, String? url, String? pendingUrl, String? title, String? favIconUrl, TabStatus? status, required bool incognito, int? width, int? height, String? sessionId})
Tab.fromJS(Tab _wrapped)

Properties

active bool
Whether the tab is active in its window. Does not necessarily mean the window is focused.
getter/setter pair
audible bool?
Whether the tab has produced sound over the past couple of seconds (but it might not be heard if also muted). Equivalent to whether the 'speaker audio' indicator is showing.
getter/setter pair
autoDiscardable bool
Whether the tab can be discarded automatically by the browser when resources are low.
getter/setter pair
discarded bool
Whether the tab is discarded. A discarded tab is one whose content has been unloaded from memory, but is still visible in the tab strip. Its content is reloaded the next time it is activated.
getter/setter pair
favIconUrl String?
The URL of the tab's favicon. This property is only present if the extension's manifest includes the "tabs" permission. It may also be an empty string if the tab is loading.
getter/setter pair
groupId int
The ID of the group that the tab belongs to.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height int?
The height of the tab in pixels.
getter/setter pair
highlighted bool
Whether the tab is highlighted.
getter/setter pair
id int?
The ID of the tab. Tab IDs are unique within a browser session. Under some circumstances a tab may not be assigned an ID; for example, when querying foreign tabs using the sessions API, in which case a session ID may be present. Tab ID can also be set to chrome.tabs.TAB_ID_NONE for apps and devtools windows.
getter/setter pair
incognito bool
Whether the tab is in an incognito window.
getter/setter pair
index int
The zero-based index of the tab within its window.
getter/setter pair
lastAccessed double?
The last time the tab was accessed as the number of milliseconds since epoch.
getter/setter pair
mutedInfo MutedInfo?
The tab's muted state and the reason for the last state change.
getter/setter pair
openerTabId int?
The ID of the tab that opened this tab, if any. This property is only present if the opener tab still exists.
getter/setter pair
pendingUrl String?
The URL the tab is navigating to, before it has committed. This property is only present if the extension's manifest includes the "tabs" permission and there is a pending navigation.
getter/setter pair
pinned bool
Whether the tab is pinned.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool
Whether the tab is selected.
getter/setter pair
sessionId String?
The session ID used to uniquely identify a tab obtained from the sessions API.
getter/setter pair
status TabStatus?
The tab's loading status.
getter/setter pair
title String?
The title of the tab. This property is only present if the extension's manifest includes the "tabs" permission.
getter/setter pair
toJS → Tab
no setter
url String?
The last committed URL of the main frame of the tab. This property is only present if the extension's manifest includes the "tabs" permission and may be an empty string if the tab has not yet committed. See also Tab.pendingUrl.
getter/setter pair
width int?
The width of the tab in pixels.
getter/setter pair
windowId int
The ID of the window that contains the tab.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited