Dart Documentationchrome.browserActionBrowserActionSetBadgeBackgroundColorParams

BrowserActionSetBadgeBackgroundColorParams class

class BrowserActionSetBadgeBackgroundColorParams extends ChromeObject {
 BrowserActionSetBadgeBackgroundColorParams({var color, int tabId}) {
   if (color != null) this.color = color;
   if (tabId != null) this.tabId = tabId;
 }
 BrowserActionSetBadgeBackgroundColorParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * An array of four integers in the range [0,255] that make up the RGBA color
  * of the badge. For example, opaque red is `[255, 0, 0, 255]`. Can also be a
  * string with a CSS value, with opaque red being `#FF0000` or `#F00`.
  */
 dynamic get color => jsProxy['color'];
 set color(var value) => jsProxy['color'] = jsify(value);

 /**
  * Limits the change to when a particular tab is selected. Automatically
  * resets when the tab is closed.
  */
 int get tabId => jsProxy['tabId'];
 set tabId(int value) => jsProxy['tabId'] = value;
}

Extends

ChromeObject > BrowserActionSetBadgeBackgroundColorParams

Constructors

new BrowserActionSetBadgeBackgroundColorParams({color, int tabId}) #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
BrowserActionSetBadgeBackgroundColorParams({var color, int tabId}) {
 if (color != null) this.color = color;
 if (tabId != null) this.tabId = tabId;
}

new BrowserActionSetBadgeBackgroundColorParams.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
BrowserActionSetBadgeBackgroundColorParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

var color #

An array of four integers in the range 0,255 that make up the RGBA color of the badge. For example, opaque red is [255, 0, 0, 255]. Can also be a string with a CSS value, with opaque red being #FF0000 or #F00.

dynamic get color => jsProxy['color'];
set color(var value) => jsProxy['color'] = jsify(value);

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

int tabId #

Limits the change to when a particular tab is selected. Automatically resets when the tab is closed.

int get tabId => jsProxy['tabId'];
set tabId(int value) => jsProxy['tabId'] = value;

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();