IconInfo class
Information about an icon belonging to an extension, app, or theme.
class IconInfo extends ChromeObject {
IconInfo({int size, String url}) {
if (size != null) this.size = size;
if (url != null) this.url = url;
}
IconInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
/**
* A number representing the width and height of the icon. Likely values
* include (but are not limited to) 128, 48, 24, and 16.
*/
int get size => jsProxy['size'];
set size(int value) => jsProxy['size'] = value;
/**
* The URL for this icon image. To display a grayscale version of the icon (to
* indicate that an extension is disabled, for example), append
* `?grayscale=true` to the URL.
*/
String get url => jsProxy['url'];
set url(String value) => jsProxy['url'] = value;
}
Extends
ChromeObject > IconInfo
Constructors
new IconInfo({int size, String url}) #
Create a new instance of a ChromeObject, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
IconInfo({int size, String url}) {
if (size != null) this.size = size;
if (url != null) this.url = url;
}
new IconInfo.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
IconInfo.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
int size #
A number representing the width and height of the icon. Likely values include (but are not limited to) 128, 48, 24, and 16.
int get size => jsProxy['size'];
set size(int value) => jsProxy['size'] = value;
String url #
The URL for this icon image. To display a grayscale version of the icon (to
indicate that an extension is disabled, for example), append
?grayscale=true to the URL.
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();