ChromeBrowserAction class

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
no setter
onClicked EventStream<Tab>
Fired when a browser action icon is clicked. Does not fire if the browser action has a popup.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disable(int? tabId) Future<void>
Disables the browser action for a tab. tabId The ID of the tab for which to modify the browser action.
enable(int? tabId) Future<void>
Enables the browser action for a tab. Defaults to enabled. tabId The ID of the tab for which to modify the browser action.
getBadgeBackgroundColor(TabDetails details) Future<List<int>>
Gets the background color of the browser action.
getBadgeText(TabDetails details) Future<String>
Gets the badge text of the browser action. If no tab is specified, the non-tab-specific badge text is returned.
getPopup(TabDetails details) Future<String>
Gets the HTML document that is set as the popup for this browser action.
getTitle(TabDetails details) Future<String>
Gets the title of the browser action.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openPopup() Future<Map?>
Opens the extension popup window in the active window but does not grant tab permissions.
setBadgeBackgroundColor(SetBadgeBackgroundColorDetails details) Future<void>
Sets the background color for the badge.
setBadgeText(SetBadgeTextDetails details) Future<void>
Sets the badge text for the browser action. The badge is displayed on top of the icon.
setIcon(SetIconDetails details) Future<void>
Sets the icon for the browser action. The icon can be specified as the path to an image file, as the pixel data from a canvas element, or as a dictionary of one of those. Either the path or the imageData property must be specified.
setPopup(SetPopupDetails details) Future<void>
Sets the HTML document to be opened as a popup when the user clicks the browser action icon.
setTitle(SetTitleDetails details) Future<void>
Sets the title of the browser action. This title appears in the tooltip.
toString() String
A string representation of this object.
inherited

Operators

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