ChromePageAction class

Properties

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

Methods

getPopup(TabDetails details) Future<String>
Gets the html document set as the popup for this page action.
getTitle(TabDetails details) Future<String>
Gets the title of the page action.
hide(int tabId) Future<void>
Hides the page action. Hidden page actions still appear in the Chrome toolbar, but are grayed out. tabId The id of the tab for which you want to modify the page action.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setIcon(SetIconDetails details) Future<void>
Sets the icon for the page action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element, or as dictionary of either 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 on the page action's icon.
setTitle(SetTitleDetails details) Future<void>
Sets the title of the page action. This is displayed in a tooltip over the page action.
show(int tabId) Future<void>
Shows the page action. The page action is shown whenever the tab is selected. tabId The id of the tab for which you want to modify the page action.
toString() String
A string representation of this object.
inherited

Operators

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